aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before/Enum.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/pretty/resource/before/Enum.java')
-rw-r--r--test/pretty/resource/before/Enum.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/pretty/resource/before/Enum.java b/test/pretty/resource/before/Enum.java
new file mode 100644
index 00000000..c1185d53
--- /dev/null
+++ b/test/pretty/resource/before/Enum.java
@@ -0,0 +1,35 @@
+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() {
+ }
+}