aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-12-19 20:10:39 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-12-19 20:10:39 +0100
commitb25a644f50e10540b7cb69189430d932a8750aec (patch)
tree386981e8c868e828e41f1ae384403778c7ddf6b9 /test/transform/resource/before
parent232d5edc355043a8616f869da670ac2c4376032e (diff)
parentae87a26456245f19d97f8852ea21556cd78e97ef (diff)
downloadlombok-b25a644f50e10540b7cb69189430d932a8750aec.tar.gz
lombok-b25a644f50e10540b7cb69189430d932a8750aec.tar.bz2
lombok-b25a644f50e10540b7cb69189430d932a8750aec.zip
Merge branch 'typeLibrary'
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/SimpleTypeResolution.java7
-rw-r--r--test/transform/resource/before/TrickyTypeResolution.java49
-rw-r--r--test/transform/resource/before/TrickyTypeResolution2.java8
3 files changed, 64 insertions, 0 deletions
diff --git a/test/transform/resource/before/SimpleTypeResolution.java b/test/transform/resource/before/SimpleTypeResolution.java
new file mode 100644
index 00000000..ef5ddef2
--- /dev/null
+++ b/test/transform/resource/before/SimpleTypeResolution.java
@@ -0,0 +1,7 @@
+class SimpleTypeResolutionFail {
+ @Getter private int x;
+}
+
+class SimpleTypeResolutionSuccess {
+ @lombok.Getter private int x;
+}
diff --git a/test/transform/resource/before/TrickyTypeResolution.java b/test/transform/resource/before/TrickyTypeResolution.java
new file mode 100644
index 00000000..94d97fe0
--- /dev/null
+++ b/test/transform/resource/before/TrickyTypeResolution.java
@@ -0,0 +1,49 @@
+import lombok.*;
+class TrickyDoNothing {
+ @interface Getter {}
+ @Getter int x;
+}
+
+class TrickyDoNothing2 {
+ @Getter int x;
+ @interface Getter {}
+}
+
+class TrickySuccess {
+ @Getter int x;
+}
+
+class TrickyDoNothing3 {
+ void test() {
+ class val {}
+ val x = null;
+ }
+}
+
+class TrickyDoSomething {
+ void test() {
+ val x = null;
+ class val {}
+ }
+}
+
+class DoubleTrickyDoNothing {
+ void test() {
+ class val {}
+ for (int i = 10; i < 20; i++) {
+ val y = null;
+ }
+ }
+}
+
+class DoubleTrickyDoSomething {
+ void test() {
+ for (int j = 10; j < 20; j++) {
+ class val {}
+ }
+
+ for (int i = 10; i < 20; i++) {
+ val y = null;
+ }
+ }
+}
diff --git a/test/transform/resource/before/TrickyTypeResolution2.java b/test/transform/resource/before/TrickyTypeResolution2.java
new file mode 100644
index 00000000..00f2ac39
--- /dev/null
+++ b/test/transform/resource/before/TrickyTypeResolution2.java
@@ -0,0 +1,8 @@
+import lombok.*;
+class DoNothingDueToTopLevel {
+ void test() {
+ val x = null;
+ }
+}
+
+class val {}