mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 14:21:47 +00:00
[fixes #1443] Handle field initializer in diet mode
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//eclipse: verify diet
|
||||
import lombok.Synchronized;
|
||||
|
||||
public class SynchronizedInInitializer {
|
||||
public static final Runnable SYNCHRONIZED = new Runnable() {
|
||||
@Override
|
||||
@Synchronized
|
||||
public void run() {
|
||||
System.out.println("test");
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user