Java to Kotlin converter: minor refactoring of switch conversion + no need for empty else

This commit is contained in:
Valentin Kipyatkov
2014-07-04 22:05:27 +04:00
parent e84c753e99
commit 6bd5a12498
4 changed files with 23 additions and 31 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ public class NonDefault {
val value = 3
val valueString = ""
when (value) {
else -> {
}
}
System.out.println(valueString)
}
@@ -14,8 +14,6 @@ public class NonDefault {
3 -> {
valueString = "THREE"
}
else -> {
}
}
System.out.println(valueString)
}