Changeset 5694 in josm for trunk/src/org
- Timestamp:
- 2013-02-05T03:06:08+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r5418 r5694 10 10 import java.util.List; 11 11 import javax.swing.Icon; 12 13 import javax.swing.JLabel;14 12 15 13 import org.openstreetmap.josm.data.coor.EastNorth; … … 176 174 throw new AssertionError("null detected in node list"); 177 175 if (n.getEastNorth() == null) 178 throw new AssertionError( n.get3892DebugInfo());176 throw new AssertionError("null coordinates detected in node list"); 179 177 180 178 n.setEastNorth(n.getEastNorth().add(x, y)); -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r5410 r5694 189 189 super.setDataset(dataSet); 190 190 if (!isIncomplete() && isVisible() && (getCoor() == null || getEastNorth() == null)) 191 throw new DataIntegrityProblemException("Complete node with null coordinates: " + toString() + get3892DebugInfo());191 throw new DataIntegrityProblemException("Complete node with null coordinates: " + toString()); 192 192 } 193 193 … … 320 320 321 321 /** 322 * Get debug info for bug #3892.323 * @return debug info for bug #3892.324 * @deprecated This method will be remove by the end of 2012 if no report appears.325 */326 public String get3892DebugInfo() {327 StringBuilder builder = new StringBuilder();328 builder.append("Unexpected error. Please report it to http://josm.openstreetmap.de/ticket/3892\n");329 builder.append(toString());330 builder.append("\n");331 if (isLatLonKnown()) {332 builder.append("Coor is null\n");333 } else {334 builder.append(String.format("EastNorth: %s\n", getEastNorth()));335 builder.append(Main.getProjection());336 builder.append("\n");337 }338 339 return builder.toString();340 }341 342 /**343 322 * Invoke to invalidate the internal cache of projected east/north coordinates. 344 323 * Coordinates are reprojected on demand when the {@link #getEastNorth()} is invoked -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r5552 r5694 584 584 for (Node n: nodes) { 585 585 if (n.isVisible() && !n.isIncomplete() && (n.getCoor() == null || n.getEastNorth() == null)) 586 throw new DataIntegrityProblemException("Complete visible node with null coordinates: " + toString() + n.get3892DebugInfo(),586 throw new DataIntegrityProblemException("Complete visible node with null coordinates: " + toString(), 587 587 "<html>" + tr("Complete node {0} with null coordinates in way {1}", 588 588 DefaultNameFormatter.getInstance().formatAsHtmlUnorderedList(n), … … 690 690 /** 691 691 * Replies the first node of this way, respecting or not its oneway state. 692 * @param respectOneway If true and if this way is a oneway, replies the last node. Otherwise, replies the first node.692 * @param respectOneway If true and if this way is a reversed oneway, replies the last node. Otherwise, replies the first node. 693 693 * @return the first node of this way, according to {@code respectOneway} and its oneway state. 694 694 * @since 5199 … … 700 700 /** 701 701 * Replies the last node of this way, respecting or not its oneway state. 702 * @param respectOneway If true and if this way is a oneway, replies the first node. Otherwise, replies the last node.702 * @param respectOneway If true and if this way is a reversed oneway, replies the first node. Otherwise, replies the last node. 703 703 * @return the last node of this way, according to {@code respectOneway} and its oneway state. 704 704 * @since 5199
Note:
See TracChangeset
for help on using the changeset viewer.