Ignore:
Timestamp:
2015-11-30T08:36:35+01:00 (6 years ago)
Author:
Don-vip
Message:

Sonar - squid:S2293 - The diamond operator ("<>") should be used

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java

    r9059 r9070  
    5757        this.geoProp = geoProp;
    5858        this.maxLevel = maxLevel;
    59         this.root = new GPLevel<T>(0, new BBox(-180, -90, 180, 90), null, this);
     59        this.root = new GPLevel<>(0, new BBox(-180, -90, 180, 90), null, this);
    6060        this.lastLevelUsed = root;
    6161    }
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r9062 r9070  
    331331    public ImageProvider addOverlay(ImageOverlay overlay) {
    332332        if (overlayInfo == null) {
    333             overlayInfo = new LinkedList<ImageOverlay>();
     333            overlayInfo = new LinkedList<>();
    334334        }
    335335        overlayInfo.add(overlay);
  • trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java

    r8855 r9070  
    225225     */
    226226    public static Collection<String> getLanguageCodes(Locale l) {
    227         Collection<String> list = new LinkedList<String>();
     227        Collection<String> list = new LinkedList<>();
    228228        if (l == null)
    229229            l = Locale.getDefault();
  • trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java

    r8514 r9070  
    8080            throw new RuntimeException(ex);
    8181        }
    82         rlCache = new GeoPropertyIndex<Boolean>(new RLTrafficGeoProperty(), 24);
     82        rlCache = new GeoPropertyIndex<>(new RLTrafficGeoProperty(), 24);
    8383    }
    8484}
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r8997 r9070  
    141141
    142142    public static <T> Collection<T> filter(Collection<? extends T> collection, Predicate<? super T> predicate) {
    143         return new FilteredCollection<T>(collection, predicate);
     143        return new FilteredCollection<>(collection, predicate);
    144144    }
    145145
Note: See TracChangeset for help on using the changeset viewer.