J2K: preserving line breaks between enum members from original code
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
enum class Color private constructor(public val code: Int) {
|
||||
WHITE(21),
|
||||
BLACK(22),
|
||||
RED(23),
|
||||
YELLOW(24),
|
||||
BLUE(25)
|
||||
WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25)
|
||||
}
|
||||
+1
-5
@@ -1,9 +1,5 @@
|
||||
enum class Color {
|
||||
WHITE,
|
||||
BLACK,
|
||||
RED,
|
||||
YELLOW,
|
||||
BLUE;
|
||||
WHITE, BLACK, RED, YELLOW, BLUE;
|
||||
override fun toString(): String {
|
||||
return "COLOR"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
enum class Color : Runnable {
|
||||
WHITE,
|
||||
BLACK,
|
||||
RED,
|
||||
YELLOW,
|
||||
BLUE;
|
||||
WHITE, BLACK, RED, YELLOW, BLUE;
|
||||
|
||||
override fun run() {
|
||||
println("name()=" + name() + ", toString()=" + toString())
|
||||
|
||||
+1
-4
@@ -1,6 +1,3 @@
|
||||
enum class Coin {
|
||||
PENNY,
|
||||
NICKEL,
|
||||
DIME,
|
||||
QUARTER
|
||||
PENNY, NICKEL, DIME, QUARTER
|
||||
}
|
||||
Reference in New Issue
Block a user