junichi11 commented on a change in pull request #2282:
URL: https://github.com/apache/netbeans/pull/2282#discussion_r463318775



##########
File path: 
java/java.editor.base/src/org/netbeans/modules/java/editor/base/semantic/SemanticHighlighterBase.java
##########
@@ -871,7 +871,18 @@ public Void visitClass(ClassTree tree, Void p) {
             }
             scan(tree.getExtendsClause(), null);
             scan(tree.getImplementsClause(), null);
-
+            try{
+            while(!tl.currentToken().text().toString().equals("{")) {

Review comment:
       Although I'm not an expert of this area, maybe, if you would like to 
check whether text of a token is the same as given one, should use 
`org.netbeans.api.lexer.TokenUtilities.textEquals()` instead of 
`toString().equals` (e.g. `!TokenUtilities.textEquals(tl.currentToken().text(), 
"{")`), then should add `// NOI18N` to strings.
   Please reformat your changes. (the changes below, too)
   
   




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

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