Java to Kotlin converter: better formatting preserving from original code
#KT-4801 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
//method
|
||||
void foo(boolean b) {
|
||||
if (b)
|
||||
System.out.println("true")
|
||||
else
|
||||
System.out.println("false")
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo(b: Boolean) {
|
||||
if (b)
|
||||
System.out.println("true")
|
||||
else
|
||||
System.out.println("false")
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
if (a.isEmpty()) 0 else 1
|
||||
@@ -1,4 +0,0 @@
|
||||
if (a.isEmpty())
|
||||
0
|
||||
else
|
||||
1
|
||||
Reference in New Issue
Block a user