aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-07-16 22:04:39 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-07-16 22:04:39 +0200
commite6421509987c01e06b7c79ef406cc01ff174ae81 (patch)
treefd86dd5dcdc258c3927b778dc23e01d3ea652e62 /test/transform/resource/before
parent2502862f896d11b9e386df34f6891918ed443409 (diff)
downloadlombok-e6421509987c01e06b7c79ef406cc01ff174ae81.tar.gz
lombok-e6421509987c01e06b7c79ef406cc01ff174ae81.tar.bz2
lombok-e6421509987c01e06b7c79ef406cc01ff174ae81.zip
Updated tests to reflect changes to delombok (delombok now kills super(), because attrib adds them even in places where that's wrong).
Also split up the SynchronizedName test into separate cases for each expected failure mode.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/SynchronizedName.java6
-rw-r--r--test/transform/resource/before/SynchronizedNameNoSuchField.java8
-rw-r--r--test/transform/resource/before/SynchronizedNameStaticToInstanceRef.java8
3 files changed, 16 insertions, 6 deletions
diff --git a/test/transform/resource/before/SynchronizedName.java b/test/transform/resource/before/SynchronizedName.java
index 5d074113..7553a8ce 100644
--- a/test/transform/resource/before/SynchronizedName.java
+++ b/test/transform/resource/before/SynchronizedName.java
@@ -5,12 +5,6 @@ class SynchronizedName {
@lombok.Synchronized("read") void test1() {
System.out.println("one");
}
- @lombok.Synchronized("write") void test2() {
- System.out.println("two");
- }
- @lombok.Synchronized("read") static void test3() {
- System.out.println("three");
- }
@lombok.Synchronized("READ") void test4() {
System.out.println("four");
}
diff --git a/test/transform/resource/before/SynchronizedNameNoSuchField.java b/test/transform/resource/before/SynchronizedNameNoSuchField.java
new file mode 100644
index 00000000..343ba6ae
--- /dev/null
+++ b/test/transform/resource/before/SynchronizedNameNoSuchField.java
@@ -0,0 +1,8 @@
+class SynchronizedNameNoSuchField {
+ private Object read = new Object();
+ private static Object READ = new Object();
+
+ @lombok.Synchronized("write") void test2() {
+ System.out.println("two");
+ }
+}
diff --git a/test/transform/resource/before/SynchronizedNameStaticToInstanceRef.java b/test/transform/resource/before/SynchronizedNameStaticToInstanceRef.java
new file mode 100644
index 00000000..08f9dbf1
--- /dev/null
+++ b/test/transform/resource/before/SynchronizedNameStaticToInstanceRef.java
@@ -0,0 +1,8 @@
+class SynchronizedNameStaticToInstanceRef {
+ private Object read = new Object();
+ private static Object READ = new Object();
+
+ @lombok.Synchronized("read") static void test3() {
+ System.out.println("three");
+ }
+}