Changeset 8540 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2015-06-27T21:43:35+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r8510 r8540 528 528 for (int i = 0; i < keys.length; i += 2) { 529 529 if (keys[i].equals(key)) { 530 keys[i+1] = value; // This modifies the keys array but it doesn't make it invalidate for any time so its ok (see note no top) 530 // This modifies the keys array but it doesn't make it invalidate for any time so its ok (see note no top) 531 keys[i+1] = value; 531 532 keysChangedImpl(originalKeys); 532 533 return; -
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r8512 r8540 178 178 OsmPrimitive source = sourceDataSet.getPrimitiveById(target.getPrimitiveId()); 179 179 if (source == null) 180 throw new RuntimeException(tr("Object of type {0} with id {1} was marked to be deleted, but it''s missing in the source dataset", 180 throw new RuntimeException( 181 tr("Object of type {0} with id {1} was marked to be deleted, but it''s missing in the source dataset", 181 182 target.getType(), target.getUniqueId())); 182 183 -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r8512 r8540 374 374 final boolean containsN = visited.contains(n); 375 375 visited.add(n); 376 if (!containsN && (predicate == null || predicate.evaluate(n)) && n.isConnectedTo(otherNodes, hops - 1, predicate, visited)) { 376 if (!containsN && (predicate == null || predicate.evaluate(n)) 377 && n.isConnectedTo(otherNodes, hops - 1, predicate, visited)) { 377 378 return true; 378 379 } -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
r8510 r8540 75 75 * @since 5440 76 76 */ 77 public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp, boolean checkHistoricParams) { 77 public HistoryOsmPrimitive(long id, long version, boolean visible, User user, long changesetId, Date timestamp, 78 boolean checkHistoricParams) { 78 79 ensurePositiveLong(id, "id"); 79 80 ensurePositiveLong(version, "version"); -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java
r8510 r8540 70 70 * @throws IllegalArgumentException if preconditions are violated 71 71 */ 72 public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp, List<RelationMemberData> members) { 72 public HistoryRelation(long id, long version, boolean visible, User user, long changesetId, Date timestamp, 73 List<RelationMemberData> members) { 73 74 this(id, version, visible, user, changesetId, timestamp); 74 75 if (members != null) { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java
r8513 r8540 127 127 try { 128 128 // print highlighted virtual nodes. Since only the color changes, simply 129 // drawing them over the existing ones works fine (at least in their current 130 // simple style) 129 // drawing them over the existing ones works fine (at least in their current simple style) 131 130 path = new GeneralPath(); 132 131 for (WaySegment wseg: data.getHighlightedVirtualNodes()) { … … 141 140 // if the way has changed while being rendered (fix #7979) 142 141 // TODO: proper solution ? 143 // Idea from bastiK: avoid the WaySegment class and add another data class with { Way way; Node firstNode, secondNode; int firstIdx; }. 144 // On read, it would first check, if the way still has firstIdx+2 nodes, then check if the corresponding way nodes are still the same 145 // and report changes in a more controlled manner. 142 // Idea from bastiK: 143 // avoid the WaySegment class and add another data class with { Way way; Node firstNode, secondNode; int firstIdx; }. 144 // On read, it would first check, if the way still has firstIdx+2 nodes, then check if the corresponding way nodes are still 145 // the same and report changes in a more controlled manner. 146 146 if (Main.isTraceEnabled()) { 147 147 Main.trace(e.getMessage()); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r8510 r8540 250 250 if (!isRegistered(defaultRenderer)) 251 251 throw new IllegalStateException( 252 MessageFormat.format("Class ''{0}'' not registered as renderer. Can''t activate default renderer.", defaultRenderer.getName()) 252 MessageFormat.format("Class ''{0}'' not registered as renderer. Can''t activate default renderer.", 253 defaultRenderer.getName()) 253 254 ); 254 255 activate(defaultRenderer);
Note:
See TracChangeset
for help on using the changeset viewer.