diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-28 18:37:44 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-28 18:48:52 +0200 |
commit | 83b4dd86136cad95026f1f2543732e0e39ed6676 (patch) | |
tree | 667a3f16cd16300f250df8b2922bb7aef6b52413 /test/transform/resource/after-delombok | |
parent | ec24fe37ddc7b8230b45f62c11bb4a047e9824e8 (diff) | |
download | lombok-83b4dd86136cad95026f1f2543732e0e39ed6676.tar.gz lombok-83b4dd86136cad95026f1f2543732e0e39ed6676.tar.bz2 lombok-83b4dd86136cad95026f1f2543732e0e39ed6676.zip |
Added test case for issue #136: @Getter or @Setter on a static field fails to compile.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/GetterOnStatic.java | 12 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/SetterOnStatic.java | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/GetterOnStatic.java b/test/transform/resource/after-delombok/GetterOnStatic.java new file mode 100644 index 00000000..99e63e05 --- /dev/null +++ b/test/transform/resource/after-delombok/GetterOnStatic.java @@ -0,0 +1,12 @@ +class Getter { + static boolean foo; + static int bar; + @java.lang.SuppressWarnings("all") + public static boolean isFoo() { + return Getter.foo; + } + @java.lang.SuppressWarnings("all") + public static int getBar() { + return Getter.bar; + } +} diff --git a/test/transform/resource/after-delombok/SetterOnStatic.java b/test/transform/resource/after-delombok/SetterOnStatic.java new file mode 100644 index 00000000..7ef68362 --- /dev/null +++ b/test/transform/resource/after-delombok/SetterOnStatic.java @@ -0,0 +1,12 @@ +class Setter { + static boolean foo; + static int bar; + @java.lang.SuppressWarnings("all") + public static void setFoo(final boolean foo) { + Setter.foo = foo; + } + @java.lang.SuppressWarnings("all") + public static void setBar(final int bar) { + Setter.bar = bar; + } +} |