[source,apex]
----
if (b == 0) {  // Noncompliant
  doOneMoreThing();
} else {
  doOneMoreThing();
}

switch on i {  // Noncompliant
  when 1 {
    doSomething();
  }
  when 2 {
    doSomething();
  }
  when 3 {
    doSomething(); 
  }
  when else {
    doSomething();
  }
}
----
