class SynchronizedNameStaticToInstanceRef { private Object read = new Object(); private static Object READ = new Object(); <clinit>() { } SynchronizedNameStaticToInstanceRef() { super(); } static @lombok.Synchronized("read") void test3() { synchronized (SynchronizedNameStaticToInstanceRef.read) { System.out.println("three"); } } }