From ae87a26456245f19d97f8852ea21556cd78e97ef Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 19 Dec 2011 20:09:40 +0100 Subject: Now the type resolver also finds top-level types in a compilation unit that name-shadow. Added tests for the type resolver. --- .../resource/after-eclipse/SimpleTypeResolution.java | 15 +++++++++++++++ .../resource/after-eclipse/TrickyTypeResolution.java | 1 + .../resource/after-eclipse/TrickyTypeResolution2.java | 1 + 3 files changed, 17 insertions(+) create mode 100644 test/transform/resource/after-eclipse/SimpleTypeResolution.java create mode 100644 test/transform/resource/after-eclipse/TrickyTypeResolution.java create mode 100644 test/transform/resource/after-eclipse/TrickyTypeResolution2.java (limited to 'test/transform/resource/after-eclipse') diff --git a/test/transform/resource/after-eclipse/SimpleTypeResolution.java b/test/transform/resource/after-eclipse/SimpleTypeResolution.java new file mode 100644 index 00000000..a0997c67 --- /dev/null +++ b/test/transform/resource/after-eclipse/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-eclipse/TrickyTypeResolution.java b/test/transform/resource/after-eclipse/TrickyTypeResolution.java new file mode 100644 index 00000000..cb06d3c1 --- /dev/null +++ b/test/transform/resource/after-eclipse/TrickyTypeResolution.java @@ -0,0 +1 @@ +//ignore \ No newline at end of file diff --git a/test/transform/resource/after-eclipse/TrickyTypeResolution2.java b/test/transform/resource/after-eclipse/TrickyTypeResolution2.java new file mode 100644 index 00000000..cb06d3c1 --- /dev/null +++ b/test/transform/resource/after-eclipse/TrickyTypeResolution2.java @@ -0,0 +1 @@ +//ignore \ No newline at end of file -- cgit