diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/delombok/lombok/delombok/PrettyPrinter.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/PrettyPrinter.java b/src/delombok/lombok/delombok/PrettyPrinter.java index b8b38da9..35dd9d76 100644 --- a/src/delombok/lombok/delombok/PrettyPrinter.java +++ b/src/delombok/lombok/delombok/PrettyPrinter.java @@ -1434,7 +1434,13 @@ public class PrettyPrinter extends JCTree.Visitor { void printBindingPattern(JCTree tree) { JCTree var = readObject(tree, "var", tree); - printVarDef0((JCVariableDecl) var); + if (var instanceof JCVariableDecl) { + printVarDef0((JCVariableDecl) var); + } else { + print((JCExpression) readObject(var, "vartype", null)); + print(" "); + print((Name) readObject(var, "name", null)); + } } void printDefaultCase(JCTree tree) { |