aboutsummaryrefslogtreecommitdiff
path: root/usage_examples
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-18 02:59:32 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-18 02:59:32 +0200
commit64216d3ea9ba04ee54a6a33f3074d59f55a6e0ef (patch)
tree13e17930c17e6fc93dfb6fb1268b0ae453a421cf /usage_examples
parentb7c969789961069b65bb811049826c2ccb5eb936 (diff)
downloadlombok-64216d3ea9ba04ee54a6a33f3074d59f55a6e0ef.tar.gz
lombok-64216d3ea9ba04ee54a6a33f3074d59f55a6e0ef.tar.bz2
lombok-64216d3ea9ba04ee54a6a33f3074d59f55a6e0ef.zip
Added feedback from r.spilker.
Diffstat (limited to 'usage_examples')
-rw-r--r--usage_examples/SynchronizedExample_post.jpage4
-rw-r--r--usage_examples/SynchronizedExample_pre.jpage4
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");
}