mbien commented on code in PR #9278:
URL: https://github.com/apache/netbeans/pull/9278#discussion_r2942768408
##########
platform/core.startup/test/unit/src/org/netbeans/core/startup/layers/DelayFSEventsTest.java:
##########
@@ -122,11 +122,11 @@ private File createModuleJar(String manifest) throws
IOException {
File l3 = new File(new File(new File(getDataDir(), "layers"), "data"),
"layer3.xml");
InputStream is = new FileInputStream(l3);
- FileUtil.copy( is, os );
+ is.transferTo(os );
Review Comment:
will update the block to try-with-resource sections too
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists