public class HelloWorld { public void sayHello() { // Noncompliant [[effortToFix=1;sc=15;ec=23;secondary=3,4]] {{The Cyclomatic Complexity of this method "sayHello" is 2 which is greater than 1 authorized.}} while (false) { } } public void sayHello2() { // Noncompliant [[effortToFix=3;sc=15;ec=24;secondary=8,9,13,14]] {{The Cyclomatic Complexity of this method "sayHello2" is 4 which is greater than 1 authorized.}} while (false) { } return a || b && c; } public boolean equals(Object o) { while (false) { } return a || b && c; } public int hashCode() { while (false) { } if ( a || b && c) { return 100; } return 42; } void lambdaExclusion() { Function<String, String> f = s -> { if(s.isEmpty()) { return s; } else if(s.length >= 2) { return s; } return s; }; } }