diff options
Diffstat (limited to 'usage_examples/SynchronizedExample_pre.jpage')
-rw-r--r-- | usage_examples/SynchronizedExample_pre.jpage | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |