sevntu-checkstyle/sevntu.checkstyle — pull request #280 by alexkravin (2014-11-29 10:42:52+00:00)
Title: Avoid Condition Inversion 

According to issue #112

This Check puts violation on inverted conditions which can be rewritten is straight way without changing main logic, e.g.:

if (!(( a >= 8) && ( b >= 5))) { ... }

=>

if ((a < 8) && (b < 5)) { ... }

Check has an option: applyOnlyToRelationalOperands (default value - false)

If switched on - Check does not put violation on code like:

if (! (obj instanceof SomeClass || obj1.isValid())) { ... }

As its operands are not relational.