mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 10:15:19 +00:00
refactored the tests to prepare running ecj as well as delombok.
This commit is contained in:
1 parent
1a9f8f168a
commit
59e585a0c6
63 files changed
+386
-186
No files matched your search
@@ -0,0 +1,28 @@
|
||||
class SynchronizedPlain1 {
|
||||
void test() {
|
||||
synchronized (this.$lock) {
|
||||
System.out.println("one");
|
||||
}
|
||||
}
|
||||
void test2() {
|
||||
synchronized (this.$lock) {
|
||||
System.out.println("two");
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private final java.lang.Object $lock = new java.lang.Object[0];
|
||||
}
|
||||
class SynchronizedPlain2 {
|
||||
static void test() {
|
||||
synchronized (SynchronizedPlain2.$LOCK) {
|
||||
System.out.println("three");
|
||||
}
|
||||
}
|
||||
static void test2() {
|
||||
synchronized (SynchronizedPlain2.$LOCK) {
|
||||
System.out.println("four");
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private static final java.lang.Object $LOCK = new java.lang.Object[0];
|
||||
}
|
||||
Reference in new issue
Block a user