mbien commented on code in PR #9508:
URL: https://github.com/apache/netbeans/pull/9508#discussion_r3736341440


##########
ide/spellchecker.bindings.htmlxml/src/org/netbeans/modules/spellchecker/bindings/htmlxml/HtmlXmlTokenListProvider.java:
##########
@@ -37,36 +36,29 @@
  *
  * @author Poppenreiter, Riha
  */
-public class HtmlXmlTokenListProvider implements TokenListProvider {
+public final class HtmlXmlTokenListProvider implements TokenListProvider {
 
-    private static final Map<String, String> MIME_TO_SETTING_NAME = new 
HashMap<String, String>();
-    static {
-        MIME_TO_SETTING_NAME.put("text/html", "HTML"); //NOI18N
-        MIME_TO_SETTING_NAME.put("text/xhtml", "XHTML"); //NOI18N
-        MIME_TO_SETTING_NAME.put("text/x-jsp", "JSP"); //NOI18N
-        MIME_TO_SETTING_NAME.put("text/x-tag", "JSP"); //NOI18N
-        MIME_TO_SETTING_NAME.put("text/x-gsp", "GSP"); //NOI18N
-        MIME_TO_SETTING_NAME.put("text/x-php5", "PHP"); //NOI18N
-    }
+    private static final Map<String, String> MIME_TO_SETTING_NAME = 
Map.ofEntries(
+            Map.entry("text/html", "HTML"), //NOI18N

Review Comment:
   nitpick: could use regular `Map.of(k, v)` since it is below 10 key-value 
pairs.



##########
ide/spellchecker.bindings.htmlxml/nbproject/project.xml:
##########


Review Comment:
   nothing changed in this file looks like only the dep order?



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