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

rules.DefaultComesLast.md Maven / Gradle / Ivy


Check that the `default` is after all the `case`s in a `switch` statement.

Valid:
````
switch (a) {
    case 1:
        break;
    case 2:
        break;
    default:
        break;
}
````

Invalid:
````
switch (a) {
    case 1:
        break;
    default:
        break;
    case 2:
        break;
}
````




© 2015 - 2024 Weber Informatics LLC | Privacy Policy