mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
11 lines
272 B
Java
11 lines
272 B
Java
// "Invert 'if' condition" "true"
|
|
// else on the same line
|
|
class TestInvertIf {
|
|
void invertIf(Object object) {
|
|
<caret>if (object == "adf") {
|
|
System.out.println("2");
|
|
} else {
|
|
System.out.println("1");
|
|
} // comment
|
|
}
|
|
} |