mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
[fixes #678] @Synchronize an instance method on static variable no longer emits a warning.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user