mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
Removed empty () for annotation without parameters
This commit is contained in:
1 parent
f2de0a28e7
commit
645a0b06c7
3 files changed
+19
-3
No files matched your search
@@ -1358,9 +1358,11 @@ public class PrettyCommentsPrinter extends JCTree.Visitor {
|
||||
try {
|
||||
print("@");
|
||||
printExpr(tree.annotationType);
|
||||
print("(");
|
||||
printExprs(tree.args);
|
||||
print(")");
|
||||
if (tree.args.nonEmpty()) {
|
||||
print("(");
|
||||
printExprs(tree.args);
|
||||
print(")");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new UncheckedIOException(e);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
@SuppressWarnings("all")
|
||||
class Annotation {
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
@SuppressWarnings("all")
|
||||
class Annotation {
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user