Skip to content

Commit 973fa51

Browse files
committed
Exclude check for boolean inversion from PMD
The argument for using bitwise inversion instead of boolean inversion is quite dated and in tests I could not reproduce the improved performance of bitwise inversion compared to boolean inversion. In any case, the performance gain is so small in most cases that it does not compensate for the loss in readability of the code.
1 parent 016c14d commit 973fa51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quality_assurance/pmd_rules.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<exclude name="AvoidLiteralsInIfCondition" />
2525
<exclude name="UseObjectForClearerAPI" />
2626
<exclude name="UseConcurrentHashMap" />
27+
<exclude name="BooleanInversion" />
2728
</rule>
2829
<rule ref="rulesets/java/coupling.xml">
2930
<exclude name="LooseCoupling" />

0 commit comments

Comments
 (0)