aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/resource/after/SynchronizedPlain.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-07-20 01:35:40 +0200
committerRoel Spilker <r.spilker@gmail.com>2010-07-20 01:35:40 +0200
commit0d7df01a0711604ce3da57e11815d376c7071870 (patch)
tree8b0bc84bf45ac725a86697b4a916e60027bcf626 /test/delombok/resource/after/SynchronizedPlain.java
parent9b886c140cf3cbc22c8db0ec8e37b95b45d7b4d9 (diff)
downloadlombok-0d7df01a0711604ce3da57e11815d376c7071870.tar.gz
lombok-0d7df01a0711604ce3da57e11815d376c7071870.tar.bz2
lombok-0d7df01a0711604ce3da57e11815d376c7071870.zip
Updated the tests to reflect recent modifications: use 'this' where possible and add @SuppressWarnings for all generated fields and methods.
Diffstat (limited to 'test/delombok/resource/after/SynchronizedPlain.java')
-rw-r--r--test/delombok/resource/after/SynchronizedPlain.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/delombok/resource/after/SynchronizedPlain.java b/test/delombok/resource/after/SynchronizedPlain.java
index fcbe03f2..695a3089 100644
--- a/test/delombok/resource/after/SynchronizedPlain.java
+++ b/test/delombok/resource/after/SynchronizedPlain.java
@@ -1,26 +1,28 @@
class SynchronizedPlain1 {
void test() {
- synchronized ($lock) {
+ synchronized (this.$lock) {
System.out.println("one");
}
}
void test2() {
- synchronized ($lock) {
+ synchronized (this.$lock) {
System.out.println("two");
}
}
+ @java.lang.SuppressWarnings("all")
private final java.lang.Object $lock = new java.lang.Object[0];
}
class SynchronizedPlain2 {
static void test() {
- synchronized ($LOCK) {
+ synchronized (SynchronizedPlain2.$LOCK) {
System.out.println("three");
}
}
static void test2() {
- synchronized ($LOCK) {
+ synchronized (SynchronizedPlain2.$LOCK) {
System.out.println("four");
}
}
+ @java.lang.SuppressWarnings("all")
private static final java.lang.Object $LOCK = new java.lang.Object[0];
} \ No newline at end of file