Example | |
|
Solution |
Avoid using too many negation operators. The default limit is 3. Try to restructure the code to remove unnecessary negations. |
public class ClassA { public void method(boolean b){ boolean a = false; if (!(b && a) || !c){ //.. } else if (!a){ //.. } } } |