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,25 @@
|
||||
class SynchronizedName {
|
||||
private Object read = new Object();
|
||||
private static Object READ = new Object();
|
||||
void test1() {
|
||||
synchronized (read) {
|
||||
System.out.println("one");
|
||||
}
|
||||
}
|
||||
void test2() {
|
||||
System.out.println("two");
|
||||
}
|
||||
static void test3() {
|
||||
System.out.println("three");
|
||||
}
|
||||
void test4() {
|
||||
synchronized (READ) {
|
||||
System.out.println("four");
|
||||
}
|
||||
}
|
||||
void test5() {
|
||||
synchronized (read) {
|
||||
System.out.println("five");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user