Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/data/gpx
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/gpx
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r6830 r7005 26 26 public String creator; 27 27 28 public final Collection<GpxTrack> tracks = new LinkedList< GpxTrack>();29 public final Collection<GpxRoute> routes = new LinkedList< GpxRoute>();30 public final Collection<WayPoint> waypoints = new LinkedList< WayPoint>();28 public final Collection<GpxTrack> tracks = new LinkedList<>(); 29 public final Collection<GpxRoute> routes = new LinkedList<>(); 30 public final Collection<WayPoint> waypoints = new LinkedList<>(); 31 31 32 32 @SuppressWarnings("unchecked") -
trunk/src/org/openstreetmap/josm/data/gpx/GpxRoute.java
r6380 r7005 6 6 7 7 public class GpxRoute extends WithAttributes { 8 public Collection<WayPoint> routePoints = new LinkedList< WayPoint>();8 public Collection<WayPoint> routePoints = new LinkedList<>(); 9 9 } -
trunk/src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrack.java
r5681 r7005 18 18 19 19 public ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs, Map<String, Object> attributes) { 20 List<GpxTrackSegment> newSegments = new ArrayList< GpxTrackSegment>();20 List<GpxTrackSegment> newSegments = new ArrayList<>(); 21 21 for (Collection<WayPoint> trackSeg: trackSegs) { 22 22 if (trackSeg != null && !trackSeg.isEmpty()) { … … 24 24 } 25 25 } 26 this.attr = Collections.unmodifiableMap(new HashMap< String, Object>(attributes));26 this.attr = Collections.unmodifiableMap(new HashMap<>(attributes)); 27 27 this.segments = Collections.unmodifiableCollection(newSegments); 28 28 this.length = calculateLength(); -
trunk/src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrackSegment.java
r6084 r7005 15 15 16 16 public ImmutableGpxTrackSegment(Collection<WayPoint> wayPoints) { 17 this.wayPoints = Collections.unmodifiableCollection(new ArrayList< WayPoint>(wayPoints));17 this.wayPoints = Collections.unmodifiableCollection(new ArrayList<>(wayPoints)); 18 18 this.bounds = calculateBounds(); 19 19 this.length = calculateLength(); -
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r6895 r7005 137 137 @Override 138 138 public List<String> getTemplateKeys() { 139 return new ArrayList< String>(attr.keySet());139 return new ArrayList<>(attr.keySet()); 140 140 } 141 141 } -
trunk/src/org/openstreetmap/josm/data/gpx/WithAttributes.java
r6830 r7005 19 19 * The "attr" hash is used to store the XML payload (not only XML attributes!) 20 20 */ 21 public Map<String, Object> attr = new HashMap< String, Object>(0);21 public Map<String, Object> attr = new HashMap<>(0); 22 22 23 23 /**
Note:
See TracChangeset
for help on using the changeset viewer.