Changeset 1911 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2009-08-05T10:05:50+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 3 edited
-
conflict/Conflict.java (modified) (2 diffs)
-
gpx/GpxData.java (modified) (2 diffs)
-
osm/Way.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java
r1750 r1911 51 51 } 52 52 53 @SuppressWarnings("unchecked") 53 54 @Override 54 55 public boolean equals(Object obj) { … … 59 60 if (getClass() != obj.getClass()) 60 61 return false; 61 Conflict<T> other = (Conflict) obj; 62 Conflict<T> other = (Conflict<T>) obj; 62 63 if (my != other.my) 63 64 return false; -
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r1724 r1911 40 40 public Collection<WayPoint> waypoints = new LinkedList<WayPoint>(); 41 41 42 @SuppressWarnings("unchecked") 42 43 public void mergeFrom(GpxData other) { 43 44 if (storageFile == null && other.storageFile != null) { … … 51 52 if (k.equals(META_LINKS) && attr.containsKey(META_LINKS)) { 52 53 ((Collection<GpxLink>) attr.get(META_LINKS)).addAll( 53 (Collection<GpxLink>) ent.getValue()); 54 (Collection<GpxLink>) ent.getValue()); 54 55 } else { 55 56 attr.put(k, ent.getValue()); -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r1910 r1911 71 71 public Node getNode(int index) { 72 72 return nodes.get(index); 73 } 74 75 /** 76 * Replies true if this way contains the node <code>node</code>, false 77 * otherwise. Replies false if <code>node</code> is null. 78 * 79 * @param node the node. May be null. 80 * @return true if this way contains the node <code>node</code>, false 81 * otherwise 82 * @since 1909 83 */ 84 public boolean containsNode(Node node) { 85 if (node == null) return false; 86 return nodes.contains(node); 73 87 } 74 88
Note:
See TracChangeset
for help on using the changeset viewer.
