Java to Kotlin convertor: generating of val/var constructor parameters when possible
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
enum class Color(c: Int) {
|
||||
enum class Color(private var code: Int) {
|
||||
WHITE : Color(21)
|
||||
BLACK : Color(22)
|
||||
RED : Color(23)
|
||||
YELLOW : Color(24)
|
||||
BLUE : Color(25)
|
||||
|
||||
private var code: Int = 0
|
||||
|
||||
public fun getCode(): Int {
|
||||
return code
|
||||
}
|
||||
|
||||
{
|
||||
code = c
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user