singh-akhilesh commented on a change in pull request #3007:
URL: https://github.com/apache/netbeans/pull/3007#discussion_r694045808
##########
File path:
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
##########
@@ -2809,6 +2815,41 @@ private Boolean scanBindingPattern(Tree node, Void p) {
return true;
}
+ private Boolean scanGuardedPattern(Tree node, Void p) {
+ try {
+ Tree gpt = TreeShims.getGuardedPattern(node);
+ if (gpt != null) {
+ Name name = TreeShims.getBinding(gpt);
+ Tree type = TreeShims.getBindingPatternType(gpt);
+ scan(type, p);
+ if (name != null) {
+ removeWhiteSpace(IDENTIFIER);
Review comment:
space(); also worked here, but adding some extra black spaces after case
labels. In some case wrapping extra blank line also doesn't worked. If you
want, I'm fine to replace this with space();
--
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: [email protected]
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