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



##########
File path: 
apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/queries/FileEncodingQueryImpl.java
##########
@@ -37,7 +38,7 @@
     public FileEncodingQueryImpl() {}
 
     public Charset getEncoding(FileObject file) {
-        return Charset.forName("UTF-8");
+        return StandardCharsets.UTF_8;

Review comment:
       static imports were used in a few cases where it made a difference. The 
typical case are 1-2 occurrences per file where it doesn't really matter.




-- 
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

Reply via email to