switch -> if: fix comments line breaks (IDEA-195383)

This commit is contained in:
Anna.Kozlova
2018-07-11 13:02:10 +02:00
parent b1a377ff20
commit ae3afdbaf8
3 changed files with 35 additions and 5 deletions
@@ -0,0 +1,11 @@
// "Replace 'switch' with 'if'" "true"
class X {
void test(int i) {
if (i == 1) {//foo
if (Math.random() > 0.5) {
System.out.println("Hello");
}
}
}
}
@@ -0,0 +1,13 @@
// "Replace 'switch' with 'if'" "true"
class X {
void test(int i) {
<caret>switch (i) {
case 1:
//foo
if (Math.random() > 0.5) {
System.out.println("Hello");
}
}
}
}