Pattern: Use of verbose boolean return
Issue: -
Checks for over-complicated boolean return statements. For example the following code:
if (valid())
return false;
else
return true;
could be written as:
return !valid();
This change will make the code more succinct and clear to the readers.
<module name="SimplifyBooleanReturn"/>