aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SetterOnStatic.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-28 18:37:44 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-28 18:48:52 +0200
commit83b4dd86136cad95026f1f2543732e0e39ed6676 (patch)
tree667a3f16cd16300f250df8b2922bb7aef6b52413 /test/transform/resource/after-ecj/SetterOnStatic.java
parentec24fe37ddc7b8230b45f62c11bb4a047e9824e8 (diff)
downloadlombok-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-ecj/SetterOnStatic.java')
-rw-r--r--test/transform/resource/after-ecj/SetterOnStatic.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/SetterOnStatic.java b/test/transform/resource/after-ecj/SetterOnStatic.java
new file mode 100644
index 00000000..8a5abdd8
--- /dev/null
+++ b/test/transform/resource/after-ecj/SetterOnStatic.java
@@ -0,0 +1,15 @@
+class Setter {
+ static @lombok.Setter boolean foo;
+ static @lombok.Setter int bar;
+ <clinit>() {
+ }
+ Setter() {
+ super();
+ }
+ public static @java.lang.SuppressWarnings("all") void setFoo(final boolean foo) {
+ Setter.foo = foo;
+ }
+ public static @java.lang.SuppressWarnings("all") void setBar(final int bar) {
+ Setter.bar = bar;
+ }
+}