diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-22 01:33:24 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-22 01:33:24 +0200 |
commit | 483e23d3853aa37a19390019fcf0db97ac8bc1d4 (patch) | |
tree | 1794c6fc66136f962ee4c9c6a229e39c0af827e5 /test/transform/resource/after-delombok/SynchronizedName.java | |
parent | 59e585a0c68959eb72be34524bdad19df5dc8a4d (diff) | |
download | lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.tar.gz lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.tar.bz2 lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.zip |
Added tests for ecj, fixed a few minor bugs that came out of that.
Diffstat (limited to 'test/transform/resource/after-delombok/SynchronizedName.java')
-rw-r--r-- | test/transform/resource/after-delombok/SynchronizedName.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/SynchronizedName.java b/test/transform/resource/after-delombok/SynchronizedName.java index 066e3bdf..e7dd23ff 100644 --- a/test/transform/resource/after-delombok/SynchronizedName.java +++ b/test/transform/resource/after-delombok/SynchronizedName.java @@ -2,7 +2,7 @@ class SynchronizedName { private Object read = new Object(); private static Object READ = new Object(); void test1() { - synchronized (read) { + synchronized (this.read) { System.out.println("one"); } } @@ -10,15 +10,17 @@ class SynchronizedName { System.out.println("two"); } static void test3() { - System.out.println("three"); + synchronized (SynchronizedName.read) { + System.out.println("three"); + } } void test4() { - synchronized (READ) { + synchronized (this.READ) { System.out.println("four"); } } void test5() { - synchronized (read) { + synchronized (this.read) { System.out.println("five"); } } |