mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
add convert switch to if for invalid switch types (IDEA-81580)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class Test {
|
||||
void foo(float f) {
|
||||
if (f == 0) {
|
||||
System.out.println(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class Test {
|
||||
void foo(float f) {
|
||||
switch (f<caret>) {
|
||||
case 0:
|
||||
System.out.println(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Replace 'switch' with 'if'" "false"
|
||||
class Test {
|
||||
void foo(float f) {
|
||||
switch (f<caret>) {
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace 'switch' with 'if'" "false"
|
||||
class Test {
|
||||
void foo(float f) {
|
||||
switch (f<caret>) {
|
||||
case
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user