Changeset 18069 in josm for trunk


Ignore:
Timestamp:
2021-07-18T23:03:55+02:00 (3 years ago)
Author:
Don-vip
Message:

code cleanup

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

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

    r18010 r18069  
    556556                result.add(((GpxLayer) layer).data);
    557557            } else if (layer instanceof GeoImageLayer) {
    558                 result.add(((GeoImageLayer) layer).getFauxGpxLayer().data);
     558                result.add(((GeoImageLayer) layer).getFauxGpxData());
    559559            }
    560560        }
  • trunk/src/org/openstreetmap/josm/io/IGpxReader.java

    r14010 r18069  
    55
    66import org.openstreetmap.josm.data.gpx.GpxData;
     7import org.openstreetmap.josm.io.rtklib.RtkLibPosReader;
    78import org.xml.sax.SAXException;
    89
    910/**
    10  * Abstraction of {@code GpxReader} and {@code NmeaReader}.
     11 * Abstraction of {@code GpxReader}, {@code NmeaReader} and {@link RtkLibPosReader}
    1112 * @since 14010
    1213 */
  • trunk/src/org/openstreetmap/josm/io/session/GeoImageSessionExporter.java

    r17733 r18069  
    1212import javax.swing.SwingConstants;
    1313
     14import org.openstreetmap.josm.gui.layer.GpxLayer;
    1415import org.openstreetmap.josm.gui.layer.Layer;
    1516import org.openstreetmap.josm.gui.layer.geoimage.GeoImageLayer;
     
    3536    @Override
    3637    public Collection<Layer> getDependencies() {
    37         if (layer.getGpxLayer() != null)
    38             return Collections.singleton((Layer) layer.getGpxLayer());
    39         else
    40             return Collections.emptySet();
     38        GpxLayer gpxLayer = layer.getGpxLayer();
     39        return gpxLayer != null ? Collections.singleton(gpxLayer) : Collections.emptySet();
    4140    }
    4241
Note: See TracChangeset for help on using the changeset viewer.