aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-12-19 20:09:40 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-12-19 20:09:40 +0100
commitae87a26456245f19d97f8852ea21556cd78e97ef (patch)
tree1df316ac294e8d9c784c9d3a006ae872404d1345 /test/transform/resource/after-ecj
parent6b91620d9efab992ee8e909b3e7b9cac0ac6f607 (diff)
downloadlombok-ae87a26456245f19d97f8852ea21556cd78e97ef.tar.gz
lombok-ae87a26456245f19d97f8852ea21556cd78e97ef.tar.bz2
lombok-ae87a26456245f19d97f8852ea21556cd78e97ef.zip
Now the type resolver also finds top-level types in a compilation unit that name-shadow. Added tests for the type resolver.
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/SimpleTypeResolution.java15
-rw-r--r--test/transform/resource/after-ecj/TrickyTypeResolution.java1
-rw-r--r--test/transform/resource/after-ecj/TrickyTypeResolution2.java1
3 files changed, 17 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/SimpleTypeResolution.java b/test/transform/resource/after-ecj/SimpleTypeResolution.java
new file mode 100644
index 00000000..a0997c67
--- /dev/null
+++ b/test/transform/resource/after-ecj/SimpleTypeResolution.java
@@ -0,0 +1,15 @@
+class SimpleTypeResolutionFail {
+ private @Getter int x;
+ SimpleTypeResolutionFail() {
+ super();
+ }
+}
+class SimpleTypeResolutionSuccess {
+ private @lombok.Getter int x;
+ public @java.lang.SuppressWarnings("all") int getX() {
+ return this.x;
+ }
+ SimpleTypeResolutionSuccess() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/TrickyTypeResolution.java b/test/transform/resource/after-ecj/TrickyTypeResolution.java
new file mode 100644
index 00000000..cb06d3c1
--- /dev/null
+++ b/test/transform/resource/after-ecj/TrickyTypeResolution.java
@@ -0,0 +1 @@
+//ignore \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/TrickyTypeResolution2.java b/test/transform/resource/after-ecj/TrickyTypeResolution2.java
new file mode 100644
index 00000000..cb06d3c1
--- /dev/null
+++ b/test/transform/resource/after-ecj/TrickyTypeResolution2.java
@@ -0,0 +1 @@
+//ignore \ No newline at end of file