Ignore:
Timestamp:
2015-10-10T01:40:42+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib - minor performance improvements:

  • Method passes constant String of length 1 to character overridden method
  • Method needlessly boxes a boolean constant
  • Method uses iterator().next() on a List to get the first item
  • Method converts String to boxed primitive using excessive boxing
  • Method converts String to primitive using excessive boxing
  • Method creates array using constants
  • Class defines List based fields but uses them like Sets
File:
1 edited

Legend:

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

    r8840 r8846  
    300300                s += " id=" + id;
    301301            }
    302             s += "]";
     302            s += ']';
    303303            return s;
    304304        }
     
    861861    public String getExtendedUrl() {
    862862        return imageryType.getTypeString() + (defaultMaxZoom != 0
    863             ? "["+(defaultMinZoom != 0 ? defaultMinZoom+"," : "")+defaultMaxZoom+"]" : "") + ":" + url;
     863            ? "["+(defaultMinZoom != 0 ? defaultMinZoom+',' : "")+defaultMaxZoom+"]" : "") + ':' + url;
    864864    }
    865865
     
    875875        String res = name;
    876876        if (pixelPerDegree != 0) {
    877             res += " ("+pixelPerDegree+")";
     877            res += " ("+pixelPerDegree+')';
    878878        }
    879879        return res;
Note: See TracChangeset for help on using the changeset viewer.