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

rules.AvoidNotShortCircuitOperatorsForBoolean.md Maven / Gradle / Ivy


Prevents the use of boolean operators that don't allow short-circuiting the expression. (e.g. '|', '&', '|=' and '&=')

Valid:
````
if ((a < b) || (b > getExpensiveValue())) {}
````

Invalid:
````
if ((a < b) | (b > getExpensiveValue())) {}
````




© 2015 - 2024 Weber Informatics LLC | Privacy Policy