mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 12:15:30 +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
@@ -2,8 +2,6 @@ class SynchronizedNameStaticToInstanceRef {
|
||||
private Object read = new Object();
|
||||
private static Object READ = new Object();
|
||||
static void test3() {
|
||||
synchronized (SynchronizedNameStaticToInstanceRef.read) {
|
||||
System.out.println("three");
|
||||
}
|
||||
System.out.println("three");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user