Ignore:
Timestamp:
2016-08-12T12:17:25+02:00 (8 years ago)
Author:
simon04
Message:

Remove superfluous FilteredCollection

Not used by any plugin in SVN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r10716 r10788  
    9696import org.openstreetmap.josm.io.OsmImporter;
    9797import org.openstreetmap.josm.tools.CheckParameterUtil;
    98 import org.openstreetmap.josm.tools.FilteredCollection;
    9998import org.openstreetmap.josm.tools.GBC;
    10099import org.openstreetmap.josm.tools.ImageOverlay;
    101100import org.openstreetmap.josm.tools.ImageProvider;
    102101import org.openstreetmap.josm.tools.ImageProvider.ImageSizes;
     102import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    103103import org.openstreetmap.josm.tools.date.DateUtils;
    104104
     
    425425
    426426    @Override public String getToolTipText() {
    427         int nodes = new FilteredCollection<>(data.getNodes(), p -> !p.isDeleted()).size();
    428         int ways = new FilteredCollection<>(data.getWays(), p -> !p.isDeleted()).size();
    429         int rels = new FilteredCollection<>(data.getRelations(), p -> !p.isDeleted()).size();
     427        int nodes = new SubclassFilteredCollection<>(data.getNodes(), p -> !p.isDeleted()).size();
     428        int ways = new SubclassFilteredCollection<>(data.getWays(), p -> !p.isDeleted()).size();
     429        int rels = new SubclassFilteredCollection<>(data.getRelations(), p -> !p.isDeleted()).size();
    430430
    431431        String tool = trn("{0} node", "{0} nodes", nodes, nodes)+", ";
Note: See TracChangeset for help on using the changeset viewer.