slachiewicz commented on code in PR #587: URL: https://github.com/apache/maven/pull/587#discussion_r906832179
########## maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java: ########## @@ -271,7 +271,7 @@ protected void createArtifact( Artifact artifact, ArtifactRepository repository { artifactFile.getParentFile().mkdirs(); } - try ( Writer writer = new OutputStreamWriter( new FileOutputStream( artifactFile ), StandardCharsets.ISO_8859_1) ) + try ( Writer writer = new OutputStreamWriter( Files.newOutputStream( artifactFile.toPath() ), StandardCharsets.ISO_8859_1) ) Review Comment: IntelliJ suggests with comment: _The streams created using Files methods are usually more efficient than those created by stream constructors._ -- 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