src.samples.java.ex.CC_Sample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sb-contrib Show documentation
Show all versions of sb-contrib Show documentation
An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.
The newest version!
package ex;
public class CC_Sample {
boolean switch1_353(final String name) { // Complexity 7
switch (name) {
case "1":
return false;
default:
return true;
}
}
boolean switch2_353(final String name) { // Complexity 10
switch (name) {
case "1":
case "2":
return false;
default:
return true;
}
}
boolean switch3_353(final String name) { // Complexity 13
switch (name) {
case "1":
case "2":
case "3":
return false;
default:
return true;
}
}
boolean switch4_353(final String name) { // Complexity 13
switch (name) {
case "1":
case "2":
case "3":
case "4":
return false;
default:
return true;
}
}
}