mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 10:15:19 +00:00
[i1014] Only add lombok.Generated if it is explicitly turned on
This commit is contained in:
1 parent
b42fef8edc
commit
70f77f928a
271 files changed
+870
-1584
No files matched your search
@@ -1,7 +1,6 @@
|
||||
class SynchronizedPlain1 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@lombok.Generated
|
||||
private final java.lang.Object $lock = new java.lang.Object[0];
|
||||
void test() {
|
||||
synchronized (this.$lock) {
|
||||
@@ -17,7 +16,6 @@ class SynchronizedPlain1 {
|
||||
class SynchronizedPlain2 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@lombok.Generated
|
||||
private static final java.lang.Object $LOCK = new java.lang.Object[0];
|
||||
static void test() {
|
||||
synchronized (SynchronizedPlain2.$LOCK) {
|
||||
@@ -29,4 +27,4 @@ class SynchronizedPlain2 {
|
||||
System.out.println("four");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user