mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
generate "constant".equals(variable) code when converting switch to if (IDEA-157516)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
public void doSomething( String value) {
|
||||
if ("case1".equals(value)) {
|
||||
} else if ("case2".equals(value)) {
|
||||
} else {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user