Ignore:
Timestamp:
2013-09-22T18:36:07+02:00 (12 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - various bugfixes / violation fixes

Location:
trunk/src/org/openstreetmap/josm/data
Files:
5 edited

Legend:

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

    r6087 r6246  
    131131        isLocalBuild = false;
    132132        value = properties.get("Is-Local-Build");
    133         if (value != null && value.trim().toLowerCase().equals("true"))  {
     133        if (value != null && value.trim().equalsIgnoreCase("true"))  {
    134134            isLocalBuild = true;
    135135        }
  • trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java

    r6203 r6246  
    1 //License: GPLv2 or later
    2 //Copyright 2007 by Raphael Mack and others
    3 
     1// License: GPL. For details, see LICENSE file.
    42package org.openstreetmap.josm.data.gpx;
    53
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r6215 r6246  
    398398    @Override
    399399    public void setVisible(boolean visible) throws IllegalStateException{
    400         if (isNew() && visible == false)
     400        if (isNew() && !visible)
    401401            throw new IllegalStateException(tr("A primitive with ID = 0 cannot be invisible."));
    402402        updateFlags(FLAG_VISIBLE, visible);
  • trunk/src/org/openstreetmap/josm/data/osm/WaySegment.java

    r5909 r6246  
    5050
    5151    @Override public boolean equals(Object o) {
    52         return o != null && o instanceof WaySegment
     52        return o instanceof WaySegment
    5353            && ((WaySegment) o).way == way
    5454            && ((WaySegment) o).lowerIndex == lowerIndex;
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r6192 r6246  
    8484     */
    8585    @SuppressWarnings("unchecked")
    86     public static Class<Test>[] allAvailableTests = new Class[] {
     86    private static final Class<Test>[] allAvailableTests = new Class[] {
    8787        DuplicateNode.class, // ID    1 ..   99
    8888        OverlappingWays.class, // ID  101 ..  199
Note: See TracChangeset for help on using the changeset viewer.