Ignore:
Timestamp:
2015-10-09T02:12:45+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S3052 - Fields should not be initialized to default values

Location:
trunk/src/org/openstreetmap/josm/data/validation
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r8510 r8840  
    7373public class OsmValidator implements LayerChangeListener {
    7474
    75     public static volatile ValidatorLayer errorLayer = null;
     75    public static volatile ValidatorLayer errorLayer;
    7676
    7777    /** The validate action */
     
    297297    }
    298298
    299     private static boolean testsInitialized = false;
     299    private static boolean testsInitialized;
    300300
    301301    /**
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r8633 r8840  
    3333public class TestError implements Comparable<TestError>, DataSetListener {
    3434    /** is this error on the ignore list */
    35     private boolean ignored = false;
     35    private boolean ignored;
    3636    /** Severity */
    3737    private Severity severity;
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Coastlines.java

    r8378 r8840  
    3838    private List<Way> coastlines;
    3939
    40     private Area downloadedArea = null;
     40    private Area downloadedArea;
    4141
    4242    /**
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r8540 r8840  
    5858    private static final Set<String> ISO_COUNTRIES = new HashSet<>(Arrays.asList(Locale.getISOCountries()));
    5959
    60     private boolean leftByPedestrians = false;
    61     private boolean leftByCyclists = false;
    62     private boolean leftByCars = false;
    63     private int pedestrianWays = 0;
    64     private int cyclistWays = 0;
    65     private int carsWays = 0;
     60    private boolean leftByPedestrians;
     61    private boolean leftByCyclists;
     62    private boolean leftByCars;
     63    private int pedestrianWays;
     64    private int cyclistWays;
     65    private int carsWays;
    6666
    6767    /**
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r8540 r8840  
    241241        protected final Map<String, Boolean> assertions = new HashMap<>();
    242242        protected final Set<String> setClassExpressions = new HashSet<>();
    243         protected boolean deletion = false;
     243        protected boolean deletion;
    244244
    245245        TagCheck(GroupedMapCSSRule rule) {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r8836 r8840  
    9595
    9696    private static class RoleInfo {
    97         private int total = 0;
     97        private int total;
    9898    }
    9999
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r8753 r8840  
    9797    public static final String PREF_CHECK_FIXMES_BEFORE_UPLOAD = PREF_CHECK_FIXMES + "BeforeUpload";
    9898
    99     protected boolean checkKeys = false;
    100     protected boolean checkValues = false;
    101     protected boolean checkComplex = false;
    102     protected boolean checkFixmes = false;
     99    protected boolean checkKeys;
     100    protected boolean checkValues;
     101    protected boolean checkComplex;
     102    protected boolean checkFixmes;
    103103
    104104    protected JCheckBox prefCheckKeys;
     
    667667            public Object value;
    668668            public boolean noMatch;
    669             public boolean tagAll = false;
    670             public boolean valueAll = false;
    671             public boolean valueBool = false;
     669            public boolean tagAll;
     670            public boolean valueAll;
     671            public boolean valueBool;
    672672
    673673            private Pattern getPattern(String str) throws PatternSyntaxException {
  • trunk/src/org/openstreetmap/josm/data/validation/util/Entities.java

    r8513 r8840  
    334334    };
    335335
    336     private static volatile Map<String, String> mapNameToValue = null;
     336    private static volatile Map<String, String> mapNameToValue;
    337337
    338338    public String unescape(String str) {
Note: See TracChangeset for help on using the changeset viewer.