Files
lombok/test/pretty/resource/before/Enum.java
T
peichhorn 68b079d312 fixed Issue 233:
Javac parser handles ";" (empty statements) as empty blocks with an invalid position. Thats why delomok replaces ";" with "{}". This gets an issue when you use this in an interface, since interfaces are not allowed to have initializer blocks.
2011-07-14 10:42:42 +02:00

36 lines
479 B
Java

enum Ranks {
CLUBS, HEARTS, DIAMONDS, SPADES;;
}
enum Complex {
RED("ff0000"), GREEN("00ff00"), BLUE("0000f");
private final String webColour;
Complex(String webColour) {
this.webColour = webColour;
}
public String getWebColour() {
return webColour;
}
}
enum Complexer {
RED {
public void foo() {
}
public void bar() {
}
},
GREEN("foo") {
public void foo() {
}
};
public abstract void foo();
Complexer(String colour) {
}
Complexer() {
}
}