Ignore:
Timestamp:
2016-10-07T23:43:52+02:00 (10 years ago)
Author:
simon04
Message:

Default method implementations of Data interface

File:
1 edited

Legend:

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

    r10972 r11095  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.geom.Area;
    76import java.util.ArrayList;
    87import java.util.Arrays;
     
    2423
    2524import org.openstreetmap.josm.Main;
    26 import org.openstreetmap.josm.data.Bounds;
    2725import org.openstreetmap.josm.data.Data;
    2826import org.openstreetmap.josm.data.DataSource;
     
    923921    @Override
    924922    public Collection<DataSource> getDataSources() {
    925         return dataSources;
    926     }
    927 
    928     @Override
    929     public Area getDataSourceArea() {
    930         return DataSource.getDataSourceArea(dataSources);
     923        return Collections.unmodifiableCollection(dataSources);
    931924    }
    932925
     
    13281321    }
    13291322
    1330     @Override
    1331     public List<Bounds> getDataSourceBounds() {
    1332         return DataSource.getDataSourceBounds(dataSources);
    1333     }
    1334 
    13351323    /**
    13361324     * Moves all primitives and datasources from DataSet "from" to this DataSet.
Note: See TracChangeset for help on using the changeset viewer.