diff options
Diffstat (limited to 'usage_examples')
-rw-r--r-- | usage_examples/SynchronizedExample_post.jpage | 4 | ||||
-rw-r--r-- | usage_examples/SynchronizedExample_pre.jpage | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usage_examples/SynchronizedExample_post.jpage b/usage_examples/SynchronizedExample_post.jpage index 858bfbde..219ab88a 100644 --- a/usage_examples/SynchronizedExample_post.jpage +++ b/usage_examples/SynchronizedExample_post.jpage @@ -1,7 +1,7 @@ public class SynchronizedExample { private static final Object $LOCK = new Object[0]; private final Object $lock = new Object[0]; - private final Object myLock = new Object(); + private final Object readLock = new Object(); public static void hello() { synchronized($LOCK) { @@ -16,7 +16,7 @@ public class SynchronizedExample { } public void foo() { - synchronized(myLock) { + synchronized(readLock) { System.out.println("bar"); } } diff --git a/usage_examples/SynchronizedExample_pre.jpage b/usage_examples/SynchronizedExample_pre.jpage index f1e8afba..ace39f85 100644 --- a/usage_examples/SynchronizedExample_pre.jpage +++ b/usage_examples/SynchronizedExample_pre.jpage @@ -1,7 +1,7 @@ import lombok.Synchronized; public class SynchronizedExample { - private final Object myLock = new Object(); + private final Object readLock = new Object(); @Synchronized public static void hello() { @@ -13,7 +13,7 @@ public class SynchronizedExample { return 42; } - @Synchronized("myLock") + @Synchronized("readLock") public void foo() { System.out.println("bar"); } |