From 0d7df01a0711604ce3da57e11815d376c7071870 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 20 Jul 2010 01:35:40 +0200 Subject: Updated the tests to reflect recent modifications: use 'this' where possible and add @SuppressWarnings for all generated fields and methods. --- test/delombok/resource/after/SynchronizedPlain.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/delombok/resource/after/SynchronizedPlain.java') 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 -- cgit