[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:
Sam Carlberg
2025-09-09 00:19:00 -04:00
committed by GitHub
parent be72d543ad
commit 909f8a1dc4
5 changed files with 7 additions and 4 deletions

View File

@@ -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"