You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "lkishalmi (via GitHub)" <gi...@apache.org> on 2026/07/14 22:55:50 UTC

[PR] Facelift on spellchecker.bindings.htmlxml [netbeans]

lkishalmi opened a new pull request, #9508:
URL: https://github.com/apache/netbeans/pull/9508

   Some of my work on the Spellchecker. Nothing new, just modernization.
   
   No rush, could be good for NB32...


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


Re: [PR] Facelift on spellchecker.bindings.htmlxml [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #9508:
URL: https://github.com/apache/netbeans/pull/9508#issuecomment-6099643157

   This is reviewed, is self contained, looks sane to me and is targeted to NB32, so lets get this in.


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


Re: [PR] Facelift on spellchecker.bindings.htmlxml [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing merged PR #9508:
URL: https://github.com/apache/netbeans/pull/9508


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


Re: [PR] Facelift on spellchecker.bindings.htmlxml [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
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: notifications-unsubscribe@netbeans.apache.org

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


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

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