Refactoring: remove braces from when entry intention is integrated into general remove braces intention

This commit is contained in:
Mikhail Glukhikh
2016-09-08 18:20:31 +03:00
parent 7f955fd260
commit cf2839eb9a
14 changed files with 49 additions and 110 deletions
+9
View File
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
fun foo() {
when (1) {
else -> {
<caret>it: Int -> it.hashCode()
}
}
}
+13
View File
@@ -0,0 +1,13 @@
// IS_APPLICABLE: false
fun bar() {}
fun gav() {}
fun foo() {
when (1) {
else -> {
bar()<caret>
gav()
}
}
}
+7
View File
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
fun foo() {
when (1) {
else -> foo()<caret>
}
}
+7
View File
@@ -0,0 +1,7 @@
fun foo() {
when (1) {
else -> {
foo()<caret>
}
}
}
@@ -0,0 +1,5 @@
fun foo() {
when (1) {
else -> foo()<caret>
}
}
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
fun foo() {
when (1) {
else -> {
val a = 1<caret>
}
}
}