Changeset 6567 in josm


Ignore:
Timestamp:
2013-12-30T23:21:22+01:00 (10 years ago)
Author:
simon04
Message:

fix #9496 - undo signature change of MapView.getLayersOfType (of r6565)

File:
1 edited

Legend:

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

    r6565 r6567  
    736736     * @return an unmodifiable list of layers of a certain type.
    737737     */
    738     public <T extends Layer> Collection<T>  getLayersOfType(Class<T> ofType) {
    739         return Utils.filteredCollection(getAllLayers(), ofType);
     738    public <T extends Layer> List<T>  getLayersOfType(Class<T> ofType) {
     739        return new ArrayList<T>(Utils.filteredCollection(getAllLayers(), ofType));
    740740    }
    741741
Note: See TracChangeset for help on using the changeset viewer.