singh-akhilesh commented on a change in pull request #3007:
URL: https://github.com/apache/netbeans/pull/3007#discussion_r694067975
##########
File path: java/java.source.base/src/org/netbeans/api/java/source/TreeMaker.java
##########
@@ -267,6 +267,18 @@ public CaseTree Case(List<? extends ExpressionTree>
patterns, Tree body) {
return delegate.Case(patterns, body);
}
+ /**
+ * Creates a new CaseTree for a rule case (case <constants> ->
<body>).
+ *
+ * @param patterns the labels for this case statement.
+ * @param body the case's body
+ * @see com.sun.source.tree.CaseTree
+ * @since 2.39
+ */
+ public CaseTree CaseMultipleSwitchPatterns(List<? extends Tree> patterns,
Tree body) {
Review comment:
Addressed review comment: renamed method CaseMultipleSwitchPatterns to
CaseMultiplePatterns and added another method that takes statment.
##########
File path: java/java.source.base/src/org/netbeans/api/java/source/TreeMaker.java
##########
@@ -267,6 +267,18 @@ public CaseTree Case(List<? extends ExpressionTree>
patterns, Tree body) {
return delegate.Case(patterns, body);
}
+ /**
+ * Creates a new CaseTree for a rule case (case <constants> ->
<body>).
+ *
+ * @param patterns the labels for this case statement.
+ * @param body the case's body
+ * @see com.sun.source.tree.CaseTree
+ * @since 2.39
+ */
+ public CaseTree CaseMultipleSwitchPatterns(List<? extends Tree> patterns,
Tree body) {
Review comment:
Addressed review comment: renamed method CaseMultipleSwitchPatterns to
CaseMultiplePatterns and added another method that takes statement.
--
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