mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 09:13:36 +00:00
Also split up the SynchronizedName test into separate cases for each expected failure mode.
9 lines
248 B
Java
9 lines
248 B
Java
class SynchronizedNameStaticToInstanceRef {
|
|
private Object read = new Object();
|
|
private static Object READ = new Object();
|
|
static void test3() {
|
|
synchronized (SynchronizedNameStaticToInstanceRef.read) {
|
|
System.out.println("three");
|
|
}
|
|
}
|
|
} |