mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-06 20:15:58 +00:00
[fixes #678] @Synchronize an instance method on static variable no longer emits a warning.
This commit is contained in:
16 files changed
+156
-44
No files matched your search
@@ -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