equal
deleted
inserted
replaced
25 |
25 |
26 package com.sun.tools.javac.tree; |
26 package com.sun.tools.javac.tree; |
27 |
27 |
28 import java.util.Iterator; |
28 import java.util.Iterator; |
29 |
29 |
30 import com.sun.source.tree.CaseTree.CaseKind; |
30 import com.sun.source.tree.CaseTree; |
31 import com.sun.source.tree.ModuleTree.ModuleKind; |
31 import com.sun.source.tree.ModuleTree.ModuleKind; |
32 import com.sun.source.tree.Tree.Kind; |
32 import com.sun.source.tree.Tree.Kind; |
33 import com.sun.tools.javac.code.*; |
33 import com.sun.tools.javac.code.*; |
34 import com.sun.tools.javac.code.Attribute.UnresolvedClass; |
34 import com.sun.tools.javac.code.Attribute.UnresolvedClass; |
35 import com.sun.tools.javac.code.Symbol.*; |
35 import com.sun.tools.javac.code.Symbol.*; |
272 JCSwitch tree = new JCSwitch(selector, cases); |
272 JCSwitch tree = new JCSwitch(selector, cases); |
273 tree.pos = pos; |
273 tree.pos = pos; |
274 return tree; |
274 return tree; |
275 } |
275 } |
276 |
276 |
277 public JCCase Case(@SuppressWarnings("removal") CaseKind caseKind, List<JCExpression> pats, |
277 public JCCase Case(@SuppressWarnings("preview") CaseTree.CaseKind caseKind, List<JCExpression> pats, |
278 List<JCStatement> stats, JCTree body) { |
278 List<JCStatement> stats, JCTree body) { |
279 JCCase tree = new JCCase(caseKind, pats, stats, body); |
279 JCCase tree = new JCCase(caseKind, pats, stats, body); |
280 tree.pos = pos; |
280 tree.pos = pos; |
281 return tree; |
281 return tree; |
282 } |
282 } |