1 2 3 4 5 6 7 8 9 10 11 12
class SynchronizedNameStaticToInstanceRef { private Object read = new Object(); private static Object READ = new Object(); <clinit>() { } SynchronizedNameStaticToInstanceRef() { super(); } static @lombok.Synchronized("read") void test3() { System.out.println("three"); } }