michael-o commented on code in PR #52:
URL: https://github.com/apache/maven-verifier/pull/52#discussion_r977371524


##########
src/main/java/org/apache/maven/shared/verifier/Verifier.java:
##########
@@ -355,7 +352,7 @@ private BufferedReader getReader( String filename, String 
encoding ) throws IOEx
 
         if ( StringUtils.isNotEmpty( encoding ) )
         {
-            return new BufferedReader( new InputStreamReader( new 
FileInputStream( file ), encoding ) );
+            return new BufferedReader( new InputStreamReader( 
Files.newInputStream( file.toPath() ), encoding ) );

Review Comment:
   
https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#newBufferedReader(java.nio.file.Path,%20java.nio.charset.Charset)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to