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

@@ -473,8 +473,8 @@ public class RefControl {
}
private static class AllowedRange {
private int allowMin = 0;
private int allowMax = 0;
private int allowMin;
private int allowMax;
private int blockMin = Integer.MIN_VALUE;
private int blockMax = Integer.MAX_VALUE;