From 850c3eaf07cd4beb2276b5e10296132b6ed3d7a6 Mon Sep 17 00:00:00 2001 From: peichhorn Date: Wed, 1 Jun 2011 02:44:53 +0200 Subject: Added a test infrastructure that simulates eclipse with diet-parse, type-binding and so forth. Similar to eclipse, the test needs to be executed with lombok as vm-agent. @Delegate runs with this setup, sadly val does not, at least for now. And as expected the tests shows that @Synchronized and @SneakyThrows are currently broken for eclipse but not for ecj. --- .../after-eclipse/GetterAlreadyExists.java | 192 +++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 test/transform/resource/after-eclipse/GetterAlreadyExists.java (limited to 'test/transform/resource/after-eclipse/GetterAlreadyExists.java') diff --git a/test/transform/resource/after-eclipse/GetterAlreadyExists.java b/test/transform/resource/after-eclipse/GetterAlreadyExists.java new file mode 100644 index 00000000..257457bb --- /dev/null +++ b/test/transform/resource/after-eclipse/GetterAlreadyExists.java @@ -0,0 +1,192 @@ +class Getter1 { + @lombok.Getter boolean foo; + public @java.lang.SuppressWarnings("all") boolean isFoo() { + return this.foo; + } + Getter1() { + super(); + } + boolean hasFoo() { + return true; + } +} +class Getter2 { + @lombok.Getter boolean foo; + Getter2() { + super(); + } + boolean isFoo() { + return true; + } +} +class Getter3 { + @lombok.Getter boolean foo; + Getter3() { + super(); + } + boolean getFoo() { + return true; + } +} +class Getter4 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter4() { + super(); + } + String hasFoo() { + return null; + } +} +class Getter5 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter5() { + super(); + } + String isFoo() { + return null; + } +} +class Getter6 { + @lombok.Getter String foo; + Getter6() { + super(); + } + String getFoo() { + return null; + } +} +class Getter7 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter7() { + super(); + } + boolean hasFoo() { + return false; + } +} +class Getter8 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter8() { + super(); + } + boolean isFoo() { + return false; + } +} +class Getter9 { + @lombok.Getter String foo; + Getter9() { + super(); + } + boolean getFoo() { + return false; + } +} +class Getter10 { + @lombok.Getter boolean foo; + public @java.lang.SuppressWarnings("all") boolean isFoo() { + return this.foo; + } + Getter10() { + super(); + } + static boolean hasFoo() { + return false; + } +} +class Getter11 { + @lombok.Getter boolean foo; + Getter11() { + super(); + } + static boolean isFoo() { + return false; + } +} +class Getter12 { + @lombok.Getter boolean foo; + Getter12() { + super(); + } + static boolean getFoo() { + return false; + } +} +class Getter13 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter13() { + super(); + } + static boolean hasFoo() { + return false; + } +} +class Getter14 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter14() { + super(); + } + static boolean isFoo() { + return false; + } +} +class Getter15 { + @lombok.Getter String foo; + Getter15() { + super(); + } + static boolean getFoo() { + return false; + } +} +class Getter16 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter16() { + super(); + } + static String hasFoo() { + return false; + } +} +class Getter17 { + @lombok.Getter String foo; + public @java.lang.SuppressWarnings("all") String getFoo() { + return this.foo; + } + Getter17() { + super(); + } + static String isFoo() { + return false; + } +} +class Getter18 { + @lombok.Getter String foo; + Getter18() { + super(); + } + static String getFoo() { + return false; + } +} -- cgit