Ignore:
Timestamp:
2018-06-11T01:28:39+02:00 (18 months ago)
Author:
Don-vip
Message:

move clearHighlighted*() default implementation from DataSet to OsmData

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

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

    r13914 r13915  
    745745
    746746    @Override
    747     public void clearHighlightedVirtualNodes() {
    748         setHighlightedVirtualNodes(new ArrayList<WaySegment>());
    749     }
    750 
    751     @Override
    752     public void clearHighlightedWaySegments() {
    753         setHighlightedWaySegments(new ArrayList<WaySegment>());
    754     }
    755 
    756     @Override
    757747    public synchronized Area getDataSourceArea() {
    758748        if (cachedDataSourceArea == null) {
  • trunk/src/org/openstreetmap/josm/data/osm/OsmData.java

    r13914 r13915  
    22package org.openstreetmap.josm.data.osm;
    33
     4import java.util.ArrayList;
    45import java.util.Collection;
    56import java.util.List;
     
    281282     * clear all highlights of virtual nodes
    282283     */
    283     void clearHighlightedVirtualNodes();
     284    default void clearHighlightedVirtualNodes() {
     285        setHighlightedVirtualNodes(new ArrayList<WaySegment>());
     286    }
    284287
    285288    /**
    286289     * clear all highlights of way segments
    287290     */
    288     void clearHighlightedWaySegments();
     291    default void clearHighlightedWaySegments() {
     292        setHighlightedWaySegments(new ArrayList<WaySegment>());
     293    }
    289294
    290295    /**
Note: See TracChangeset for help on using the changeset viewer.