void () { boolean a = bar(); boolean b = bar(); final boolean i; <warning descr="If statement can be replaced with '||'">if</warning> (a) { i = b; } else { i = true; } final boolean j; <warning descr="If statement can be replaced with '||'">if</warning> (a) { j = true; } else { j = b; } final boolean k; <warning descr="If statement can be replaced with '&&'">if</warning> (a) { k = b; } else { k = false; } final boolean l; <warning descr="If statement can be replaced with '&&'">if</warning> (a) { l = false; } else { l = b; } }