mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
[fixes #1443] Handle field initializer in diet mode
This commit is contained in:
1 parent
00893744eb
commit
b6dd48a042
21 files changed
+553
-75
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import lombok.Synchronized;
|
||||
public class SynchronizedInInitializer {
|
||||
public static final Runnable SYNCHRONIZED = new Runnable() {
|
||||
private final java.lang.Object $lock = new java.lang.Object[0];
|
||||
public @Override @Synchronized void run() {
|
||||
synchronized (this.$lock)
|
||||
{
|
||||
System.out.println("test");
|
||||
}
|
||||
}
|
||||
};
|
||||
<clinit>() {
|
||||
}
|
||||
public SynchronizedInInitializer() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user