mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
[java-intention] BreakConverter#process fixed
isRemovable must be called before any modifications. Otherwise, previous modifications may affect its results. GitOrigin-RevId: d05be1e54ba62e5ac18003bf54dab2abb16124ce
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bd24e716a3
commit
9ca4341d7f
+16
@@ -0,0 +1,16 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
void test(int x) {
|
||||
if (x > 0) {
|
||||
if (x == 1) {
|
||||
if (Math.random() > 0.5) {
|
||||
System.out.println(1);
|
||||
} else {
|
||||
}
|
||||
} else if (x == 2) {
|
||||
System.out.println(2);
|
||||
}
|
||||
}
|
||||
System.out.println("Exit");
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
void test(int x) {
|
||||
if (x > 0) {
|
||||
swi<caret>tch (x) {
|
||||
case 1:
|
||||
if (Math.random() > 0.5) {
|
||||
System.out.println(1);
|
||||
break;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
System.out.println(2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.out.println("Exit");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user