mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
IDEA-105132 Swap adjoined if-statements intention. Invokes on "else" keyword
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Swap If Statements" "true"
|
||||
class A {
|
||||
|
||||
void m() {
|
||||
|
||||
if (otherCondition) {
|
||||
doAnotherAction();
|
||||
} else if (someCondition) {
|
||||
doSomeAction();
|
||||
} else {
|
||||
defaultAction();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user