You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/09/12 21:29:05 UTC
[GitHub] [netbeans] lkishalmi commented on a diff in pull request #4625: Minor cleanup in YAML Language Support
lkishalmi commented on code in PR #4625:
URL: https://github.com/apache/netbeans/pull/4625#discussion_r968948709
##########
ide/languages.yaml/src/org/netbeans/modules/languages/yaml/YamlLanguage.java:
##########
@@ -155,12 +167,72 @@ public InstantRenamer getInstantRenamer() {
return null;
}
+ public static final Language<YamlTokenId> language =
Review Comment:
Well, despite it is written all lowercase, the `language` is a constant. I see nothing wrong using public class constants without a wrapping static method. (I'm with the remove the bloat folks) That static method was required for the `MimeRegistration`, which after all is not required.
Ideally it could be a private final field, though it is being used one time in the Parser. and about 10 times in the tests.
--
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