All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.samples.java.ex.CC_Sample Maven / Gradle / Ivy

Go to download

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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy