Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

Location:
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java

    r28689 r30737  
    1212public class EditGpxData {
    1313
    14     private final List<EditGpxTrack> tracks = new ArrayList<EditGpxTrack>();
     14    private final List<EditGpxTrack> tracks = new ArrayList<>();
    1515    // Only copy of routes and waypoints to preserve all info when converting back to gpx track
    16     private final List<GpxRoute> routes = new ArrayList<GpxRoute>();
    17     private final List<WayPoint> waypoints = new ArrayList<WayPoint>();
     16    private final List<GpxRoute> routes = new ArrayList<>();
     17    private final List<WayPoint> waypoints = new ArrayList<>();
    1818
    1919    public void load(GpxData data) {
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java

    r28689 r30737  
    1919public class EditGpxTrack {
    2020
    21     private final List<EditGpxTrackSegment> segments = new ArrayList<EditGpxTrackSegment>();
    22     private final Map<String, Object> attributes = new HashMap<String, Object>();
     21    private final List<EditGpxTrackSegment> segments = new ArrayList<>();
     22    private final Map<String, Object> attributes = new HashMap<>();
    2323    private boolean isDeleted;
    2424
     
    3939    public GpxTrack createGpxTrack(boolean anonTime, double minTime) {
    4040
    41         Collection<Collection<WayPoint>> wayPoints = new ArrayList<Collection<WayPoint>>();
     41        Collection<Collection<WayPoint>> wayPoints = new ArrayList<>();
    4242
    4343        final DateFormat iso8601 =
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java

    r28689 r30737  
    1010public class EditGpxTrackSegment {
    1111
    12     private final List<EditGpxWayPoint> wayPoints = new ArrayList<EditGpxWayPoint>();
     12    private final List<EditGpxWayPoint> wayPoints = new ArrayList<>();
    1313    private boolean deleted;
    1414
     
    2424
    2525    public List<WayPoint> getNonDeletedWaypoints() {
    26         List<WayPoint> result = new ArrayList<WayPoint>();
     26        List<WayPoint> result = new ArrayList<>();
    2727
    2828        for (EditGpxWayPoint wp: wayPoints) {
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java

    r28689 r30737  
    1616        this.time = wayPoint.time;
    1717        this.coor = new CachedLatLon(wayPoint.getCoor());
    18         this.attributes = new HashMap<String, Object>(wayPoint.attr);
     18        this.attributes = new HashMap<>(wayPoint.attr);
    1919    }
    2020
Note: See TracChangeset for help on using the changeset viewer.