diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-03-26 23:48:46 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-03-26 23:48:46 +0200 |
commit | 7ddafc0fe573b0d97a4bf27d42caccad695af996 (patch) | |
tree | a6fa0ddee8aa4c25f35c0233f2aaa8e78df2fb3e | |
parent | 7569969e25cbcc774d7a4f32d00cb2efac653c1a (diff) | |
download | lombok-7ddafc0fe573b0d97a4bf27d42caccad695af996.tar.gz lombok-7ddafc0fe573b0d97a4bf27d42caccad695af996.tar.bz2 lombok-7ddafc0fe573b0d97a4bf27d42caccad695af996.zip |
delombok now prints a space in between method type args and return type.
-rw-r--r-- | src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 1 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/ValWeirdTypes.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java index 056f5bf4..095928ad 100644 --- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java +++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java @@ -759,6 +759,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { printDocComment(tree); printExpr(tree.mods); printTypeParameters(tree.typarams); + if (tree.typarams != null && tree.typarams.length() > 0) print(" "); if (tree.name == tree.name.table.fromChars("<init>".toCharArray(), 0, 6)) { print(enclClassName != null ? enclClassName : tree.name); } else { diff --git a/test/transform/resource/after-delombok/ValWeirdTypes.java b/test/transform/resource/after-delombok/ValWeirdTypes.java index 9eb211b3..2c2905ed 100644 --- a/test/transform/resource/after-delombok/ValWeirdTypes.java +++ b/test/transform/resource/after-delombok/ValWeirdTypes.java @@ -23,7 +23,7 @@ public class ValWeirdTypes<Z> { } }; } - public <T extends Number>void testTypeParams(List<T> param) { + public <T extends Number> void testTypeParams(List<T> param) { final T t = param.get(0); final Z z = fieldList.get(0); final java.util.List<T> k = param; |