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 2020/07/31 22:17:15 UTC

[GitHub] [netbeans] junichi11 commented on a change in pull request #2283: [NETBEANS-3990]: Auto completion for Sealed Types

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