Added test case for issue #136: @Getter or @Setter on a static field fails to compile.

This commit is contained in:
Reinier Zwitserloot committed 2010-07-28 18:48:52 +02:00
1 parent ec24fe37dd
commit 83b4dd8613
6 files changed
+62

No files matched your search

@@ -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;
}
}
@@ -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;
}
}
@@ -0,0 +1,15 @@
class Getter {
static @lombok.Getter boolean foo;
static @lombok.Getter int bar;
<clinit>() {
}
Getter() {
super();
}
public static @java.lang.SuppressWarnings("all") boolean isFoo() {
return Getter.foo;
}
public static @java.lang.SuppressWarnings("all") int getBar() {
return Getter.bar;
}
}
@@ -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;
}
}
@@ -0,0 +1,4 @@
class Getter {
@lombok.Getter static boolean foo;
@lombok.Getter static int bar;
}
@@ -0,0 +1,4 @@
class Setter {
@lombok.Setter static boolean foo;
@lombok.Setter static int bar;
}