mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
fix typo in printing switch expressions
This commit is contained in:
1 parent
ab7970b259
commit
2e08e49ed7
1 file changed
+1
-1
@@ -1614,7 +1614,7 @@ public class PrettyPrinter extends JCTree.Visitor {
|
||||
printAnnotatedType0(tree);
|
||||
} else if (className.endsWith("$JCPackageDecl")) {
|
||||
// Starting with JDK9, this is inside the import list, but we've already printed it. Just ignore it.
|
||||
} else if (className.endsWith(".JCSwitchExpression")) { // Introduced as preview feature in JDK12
|
||||
} else if (className.endsWith("$JCSwitchExpression")) { // Introduced as preview feature in JDK12
|
||||
printSwitchExpression(tree);
|
||||
} else if (className.endsWith("$JCYield")) { // Introduced as preview feature in JDK13, part of switch expressions.
|
||||
printYieldExpression(tree);
|
||||
|
||||
Reference in new issue
Block a user