mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Remove PMD.RedundantFieldInitializer rule (#8184)
Code readability is much more important than saving three bytes per redundantly-initialized field.
This commit is contained in:
@@ -97,6 +97,12 @@
|
||||
|
||||
<rule ref="category/java/performance.xml">
|
||||
<exclude name="AvoidInstantiatingObjectsInLoops" />
|
||||
<!--
|
||||
This rule is in place to save three (!) bytecode instructions when initializing a field to its default value.
|
||||
Code that's more readable due to having explicit initial values is more important than reducing class size by a
|
||||
few bytes.
|
||||
-->
|
||||
<exclude name="RedundantFieldInitializer" />
|
||||
</rule>
|
||||
|
||||
<rule name="UnnecessaryCastRule" language="java"
|
||||
|
||||
Reference in New Issue
Block a user