invert condition: wrap with parenthesis according to precedence order (IDEA-98952)

This commit is contained in:
anna
2013-01-15 12:49:03 +01:00
parent 1b958e20a6
commit 9a66dcbd8c
7 changed files with 70 additions and 1 deletions
@@ -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);
}
}
}