Changeset 11849 in josm for trunk/src/org


Ignore:
Timestamp:
2017-04-07T00:25:55+02:00 (8 years ago)
Author:
Don-vip
Message:

see #14604 - sonar - squid:S1596 - "Collections.EMPTY_LIST", "EMPTY_MAP", and "EMPTY_SET" should not be used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r11836 r11849  
    299299        private Collection<OsmPrimitive> searchPrimitivesToUpdate(Bounds bounds, DataSet ds) {
    300300            if (bounds == null)
    301                 return Collections.EMPTY_SET;
     301                return Collections.emptySet();
    302302            Collection<OsmPrimitive> col = new ArrayList<>();
    303303            ds.searchNodes(bounds.toBBox()).stream().filter(n -> !n.isNew() && !dataSet.containsNode(n)).forEachOrdered(col::add);
Note: See TracChangeset for help on using the changeset viewer.