diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
3 files changed, 73 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/SimpleTypeResolution.java b/test/transform/resource/after-delombok/SimpleTypeResolution.java new file mode 100644 index 00000000..c6e08d70 --- /dev/null +++ b/test/transform/resource/after-delombok/SimpleTypeResolution.java @@ -0,0 +1,11 @@ +class SimpleTypeResolutionFail { + @Getter + private int x; +} +class SimpleTypeResolutionSuccess { + private int x; + @java.lang.SuppressWarnings("all") + public int getX() { + return this.x; + } +} diff --git a/test/transform/resource/after-delombok/TrickyTypeResolution.java b/test/transform/resource/after-delombok/TrickyTypeResolution.java new file mode 100644 index 00000000..9a5aae16 --- /dev/null +++ b/test/transform/resource/after-delombok/TrickyTypeResolution.java @@ -0,0 +1,54 @@ +import lombok.*; +class TrickyDoNothing { + @interface Getter { + } + @Getter + int x; +} +class TrickyDoNothing2 { + @Getter + int x; + @interface Getter { + } +} +class TrickySuccess { + int x; + @java.lang.SuppressWarnings("all") + public int getX() { + return this.x; + } +} +class TrickyDoNothing3 { + void test() { + class val { + } + val x = null; + } +} +class TrickyDoSomething { + void test() { + final java.lang.Object 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++) { + final java.lang.Object y = null; + } + } +} diff --git a/test/transform/resource/after-delombok/TrickyTypeResolution2.java b/test/transform/resource/after-delombok/TrickyTypeResolution2.java new file mode 100644 index 00000000..9118767f --- /dev/null +++ b/test/transform/resource/after-delombok/TrickyTypeResolution2.java @@ -0,0 +1,8 @@ +import lombok.*; +class DoNothingDueToTopLevel { + void test() { + val x = null; + } +} +class val { +} |