Delete BooleanInversion as it makes no sense
A source code analyzer
Brought to you by:
adangel,
juansotuyo
As validated by JMH benchmark (see BooleanNegate Test Case), all the variants of boolean negation result in exactly the same machine code.
Thus it makes little sense to suggest one or the other way of expressing the code.
The issue is "reported" in https://twitter.com/shipilev/status/529975950411587584
Diff:
Thanks for pointing this out :)
The rule is deprecated now and will be removed with the release after 5.3.0.
The bytecode that is generated by the compiler is indeed different - but the JIT compiler seems to optimize it always to the "fastest way". So, there is no need anymore for this rule.