Remove explicit initialization of default values

Default values are false for boolean, 0 for int and char, and null
for object references.

Explicitly initializing a variable to the default value causes it
to be initialized twice.

Enable the Checkstyle warning, and fix occurences of it.

Change-Id: I1971e438fc506c18458b1402fcb01e43fa61ff8c
This commit is contained in:
David Pursehouse
2016-04-12 16:17:54 +09:00
parent d79c03a7f6
commit 60ebcdb18e
8 changed files with 10 additions and 9 deletions

View File

@@ -95,6 +95,7 @@ edited to remove noisy warnings.
</module>
<module name="RedundantImport"/>
<module name="RedundantModifier"/>
<module name="ExplicitInitialization"/>
</module>
<module name="FileTabCharacter">
<property name="severity" value="ignore"/>