mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
don't insert unneeded parentheses on "invert if"
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class Inversion {
|
||||
public void context(boolean a, boolean b, boolean c) {
|
||||
if ((a &<caret>& b && c)) {
|
||||
System.out.println(0);
|
||||
} else {
|
||||
System.out.println(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user