roxspring commented on a change in pull request #5: URL: https://github.com/apache/maven-resources-plugin/pull/5#discussion_r455856767
########## File path: src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBuildStub.java ########## @@ -300,8 +293,6 @@ private void populateFile( File file ) throws IOException try ( FileOutputStream outputStream = new FileOutputStream( file ) ) { outputStream.write( data.getBytes() ); - outputStream.flush(); Review comment: Don't think the `.flush()` is guaranteed by try-with-resources... but perhaps by not wrapping FOS in a BufferedOutputStream then that's not a problem? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org