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

rules.ReturnNullInsteadOfBoolean.md Maven / Gradle / Ivy


The `Boolean` type is meant to only represent a binary state: TRUE or FALSE. It is not a ternary value: TRUE, FALSE, null.

Invalid:
````
Boolean isEnabled() {
    if (level > 0) {
        return True;
    }
    if (level < 0) {
        return False;
    }
    return null;
}
````




© 2015 - 2024 Weber Informatics LLC | Privacy Policy