mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
invert condition: wrap with parenthesis according to precedence order (IDEA-98952)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Invert If Condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if ((!a && !b) || !c) {
|
||||
System.out.println(1);
|
||||
}
|
||||
else {
|
||||
System.out.println(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user