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



##########
File path: 
java/java.completion/src/org/netbeans/modules/java/completion/JavaCompletionTask.java
##########
@@ -780,6 +813,13 @@ private void insideClass(Env env) throws IOException {
                 controller.toPhase(Phase.ELEMENTS_RESOLVED);
                 env.addToExcludes(controller.getTrees().getElement(path));
                 addTypes(env, EnumSet.of(INTERFACE, ANNOTATION_TYPE), null);
+            } else if (last != null && 
last.token().text().toString().equals("permits")) {

Review comment:
       should use `TokenUtilities.textEquals()`.
   Please reformat each your change. (Select your changes > Source > Format)




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