< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java
Print this page
rev 56510 : 8232684: Make switch expressions final
Reviewed-by: TBD
@@ -272,11 +272,11 @@
JCSwitch tree = new JCSwitch(selector, cases);
tree.pos = pos;
return tree;
}
- public JCCase Case(@SuppressWarnings("preview") CaseTree.CaseKind caseKind, List<JCExpression> pats,
+ public JCCase Case(CaseTree.CaseKind caseKind, List<JCExpression> pats,
List<JCStatement> stats, JCTree body) {
JCCase tree = new JCCase(caseKind, pats, stats, body);
tree.pos = pos;
return tree;
}
< prev index next >