lbownik commented on a change in pull request #3844:
URL: https://github.com/apache/netbeans/pull/3844#discussion_r835560379



##########
File path: 
apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/ui/wizard/common/CreatedModifiedFilesTest.java
##########
@@ -222,7 +223,7 @@ public void testAddLookupRegistration() throws Exception {
         assertNotNull(registry);
         InputStream is = registry.getInputStream();
         try {
-            BufferedReader r = new BufferedReader(new InputStreamReader(is, 
"UTF-8"));
+            BufferedReader r = new BufferedReader(new InputStreamReader(is, 
StandardCharsets.UTF_8));

Review comment:
       how about try-with-resources here?




-- 
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: notifications-unsubscr...@netbeans.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to