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/05/09 17:38:48 UTC

[GitHub] [netbeans] lahodaj commented on a diff in pull request #3343: [NETBEANS-6241] - Fixed switchToRuleSwitch Hint for BindingPattern and GuardedPattern

lahodaj commented on code in PR #3343:
URL: https://github.com/apache/netbeans/pull/3343#discussion_r868256401


##########
java/java.hints/src/org/netbeans/modules/java/hints/errors/Utilities.java:
##########
@@ -3196,7 +3198,7 @@ public static void performRewriteRuleSwitch(JavaFix.TransformationContext ctx, T
         for (Iterator<? extends CaseTree> it = cases.iterator(); it.hasNext();) {
             CaseTree ct = it.next();
             TreePath casePath = new TreePath(tp, ct);
-            patterns.addAll(ct.getLabels());
+            patterns.addAll(ct.getLabels());            

Review Comment:
   Seems the change is still there - the import above seems unnecessary, and this line seems to have some unnecessary trailing whitespaces.



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