Changeset 10632 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2016-07-24T23:50:15+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/MultipolygonBuilder.java
r10469 r10632 170 170 * @throws JoinedPolygonCreationException if the creation fails. 171 171 */ 172 public static List<JoinedPolygon> joinWays(Collection<Way> ways) throws JoinedPolygonCreationException{172 public static List<JoinedPolygon> joinWays(Collection<Way> ways) { 173 173 List<JoinedPolygon> joinedWays = new ArrayList<>(); 174 174 -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r10608 r10632 484 484 } 485 485 486 private void checkMembers() throws DataIntegrityProblemException { 486 /** 487 * Checks that members are part of the same dataset, and that they're not deleted. 488 * @throws DataIntegrityProblemException if one the above conditions is not met 489 */ 490 private void checkMembers() { 487 491 DataSet dataSet = getDataSet(); 488 492 if (dataSet != null) { … … 503 507 } 504 508 505 private void fireMembersChanged() throws DataIntegrityProblemException { 509 /** 510 * Fires the {@code RelationMembersChangedEvent} to listeners. 511 * @throws DataIntegrityProblemException if members are not valid 512 * @see #checkMembers 513 */ 514 private void fireMembersChanged() { 506 515 checkMembers(); 507 516 if (getDataSet() != null) { -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r9979 r10632 448 448 * @since 1313 449 449 */ 450 public void addNode(int offs, Node n) throws IndexOutOfBoundsException{450 public void addNode(int offs, Node n) { 451 451 if (n == null) return; 452 452 -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java
r10378 r10632 111 111 * @throws IndexOutOfBoundsException if idx is out of bounds 112 112 */ 113 public RelationMemberData getRelationMember(int idx) throws IndexOutOfBoundsException{113 public RelationMemberData getRelationMember(int idx) { 114 114 if (idx < 0 || idx >= members.size()) 115 115 throw new IndexOutOfBoundsException( -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java
r9067 r10632 97 97 * @throws IndexOutOfBoundsException if idx < 0 || idx >= {#see {@link #getNumNodes()} 98 98 */ 99 public long getNodeId(int idx) throws IndexOutOfBoundsException{99 public long getNodeId(int idx) { 100 100 if (idx < 0 || idx >= nodeIds.size()) 101 101 throw new IndexOutOfBoundsException(tr("Parameter {0} not in range 0..{1}. Got ''{2}''.", "idx", nodeIds.size(), idx));
Note:
See TracChangeset
for help on using the changeset viewer.