[fixes #678] @Synchronize an instance method on static variable no longer emits a warning.

This commit is contained in:
Reinier Zwitserloot
2020-02-14 01:20:14 +01:00
parent 15b09ee274
commit 89f98da78d
16 changed files with 156 additions and 44 deletions
@@ -0,0 +1,16 @@
class SynchronizedOnStatic<Z> {
static class Inner {
private static Object LCK = new Object[0];
@lombok.Synchronized("LCK")
public void foo() {
System.out.println();
}
}
class Inner2 {
private Object LCK = new Object[0];
@lombok.Synchronized("LCK")
public void foo() {
System.out.println();
}
}
}