mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
Fixes IDEA-199499 Improve "Replace 'switch' with 'if'" action and make it a quick-fix for "Switch has too few branches" Now default is not counted as branch in SwitchStatementWithTooFewBranches
14 lines
308 B
Java
14 lines
308 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
class X {
|
|
public void doSomething( String value) {
|
|
//comment1
|
|
//comment4
|
|
//comment6
|
|
//comment7
|
|
//comment8
|
|
if ("case1".equals(value)) {//comment2
|
|
//comment3
|
|
} else if ("case2".equals(value)) {//comment5
|
|
}
|
|
}
|
|
} |