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

rules.ConfusingCondition.md Maven / Gradle / Ivy


Checks that the expression with the `if` condition in an `if-then-else` statement is not negated.

Valid:
````
if (isValid()) {
    handleValidCondition();
} else {
    handleInvalidCondition();
}
````

Invalid:
````
if (!isValid()) {
    handleInvalidCondition();
} else {
    handleValidCondition();
}
````




© 2015 - 2024 Weber Informatics LLC | Privacy Policy