IDEA-105132 Swap adjoined if-statements intention. Invokes on "else" keyword

This commit is contained in:
Dmitry Batkovich
2014-06-11 15:13:02 +04:00
parent d4d7c04321
commit aac112074d
13 changed files with 238 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// "Swap If Statements" "true"
class A {
void m() {
if (otherCondition) {
doAnotherAction();
} else if (someCondition) {
doSomeAction();
} else {
defaultAction();
}
}
}