- Timestamp:
- 2017-05-15T16:04:38+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r12156 r12164 40 40 public String creator; 41 41 42 private ArrayList<GpxTrack> privateTracks = new ArrayList<>();43 private ArrayList<GpxRoute> privateRoutes = new ArrayList<>();44 private ArrayList<WayPoint> privateWaypoints = new ArrayList<>();42 private final ArrayList<GpxTrack> privateTracks = new ArrayList<>(); 43 private final ArrayList<GpxRoute> privateRoutes = new ArrayList<>(); 44 private final ArrayList<WayPoint> privateWaypoints = new ArrayList<>(); 45 45 private final GpxTrackChangeListener proxy = e -> fireInvalidate(); 46 46 … … 580 580 final int prime = 31; 581 581 int result = 1; 582 result = prime * result + ((dataSources == null) ? 0 : dataSources.hashCode());583 result = prime * result + ((routes == null) ? 0 : routes.hashCode());584 result = prime * result + ((tracks == null) ? 0 : tracks.hashCode());585 result = prime * result + ((waypoints == null) ? 0 : waypoints.hashCode());582 result = prime * result + dataSources.hashCode(); 583 result = prime * result + privateRoutes.hashCode(); 584 result = prime * result + privateTracks.hashCode(); 585 result = prime * result + privateWaypoints.hashCode(); 586 586 return result; 587 587 } … … 601 601 } else if (!dataSources.equals(other.dataSources)) 602 602 return false; 603 if ( routes == null) {604 if (other. routes != null)603 if (privateRoutes == null) { 604 if (other.privateRoutes != null) 605 605 return false; 606 } else if (! routes.equals(other.routes))606 } else if (!privateRoutes.equals(other.privateRoutes)) 607 607 return false; 608 if ( tracks == null) {609 if (other. tracks != null)608 if (privateTracks == null) { 609 if (other.privateTracks != null) 610 610 return false; 611 } else if (! tracks.equals(other.tracks))611 } else if (!privateTracks.equals(other.privateTracks)) 612 612 return false; 613 if ( waypoints == null) {614 if (other. waypoints != null)613 if (privateWaypoints == null) { 614 if (other.privateWaypoints != null) 615 615 return false; 616 } else if (! waypoints.equals(other.waypoints))616 } else if (!privateWaypoints.equals(other.privateWaypoints)) 617 617 return false; 618 618 return true;
Note:
See TracChangeset
for help on using the changeset viewer.