diff options
author | Roel Spilker <r.spilker@gmail.com> | 2021-03-19 03:08:10 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-03-19 03:08:10 +0100 |
commit | 9b211af8be36c67212999063134bc9dfc266f7b9 (patch) | |
tree | c36dc31df6f3082a645b048e5763bb44e46fa232 /src/delombok/lombok | |
parent | 2ed5077cae63cb193b4c7d1f8aa1ad3e9e6c2652 (diff) | |
download | lombok-9b211af8be36c67212999063134bc9dfc266f7b9.tar.gz lombok-9b211af8be36c67212999063134bc9dfc266f7b9.tar.bz2 lombok-9b211af8be36c67212999063134bc9dfc266f7b9.zip |
[jdk16] JCBindingPattern now has a field names var instead of separate fields
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r-- | src/delombok/lombok/delombok/PrettyPrinter.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/delombok/lombok/delombok/PrettyPrinter.java b/src/delombok/lombok/delombok/PrettyPrinter.java index 3037d06e..7531b0b1 100644 --- a/src/delombok/lombok/delombok/PrettyPrinter.java +++ b/src/delombok/lombok/delombok/PrettyPrinter.java @@ -1385,9 +1385,10 @@ public class PrettyPrinter extends JCTree.Visitor { } void printBindingPattern(JCTree tree) { - print((JCExpression) readObject(tree, "vartype", null)); + JCTree var = readObject(tree, "var", tree); + print((JCExpression) readObject(var, "vartype", null)); print(" "); - print((Name) readObject(tree, "name", null)); + print((Name) readObject(var, "name", null)); } @Override public void visitTry(JCTry tree) { |