Changeset 11135 in josm
- Timestamp:
- 2016-10-16T20:21:27+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r11134 r11135 140 140 public Builder primitives(Collection<? extends OsmPrimitive> primitives) { 141 141 CheckParameterUtil.ensureThat(this.primitives == null, "primitives already set"); 142 CheckParameterUtil.ensureParameterNotNull(primitives, "primitives"); 142 143 this.primitives = primitives; 143 144 if (this.highlighted == null) { … … 166 167 */ 167 168 public Builder highlight(Collection<? extends OsmPrimitive> highlighted) { 169 CheckParameterUtil.ensureParameterNotNull(highlighted, "highlighted"); 168 170 this.highlighted = highlighted; 169 171 return this; … … 178 180 */ 179 181 public Builder highlightWaySegments(Collection<WaySegment> highlighted) { 182 CheckParameterUtil.ensureParameterNotNull(highlighted, "highlighted"); 180 183 this.highlighted = highlighted; 181 184 return this; … … 190 193 */ 191 194 public Builder highlightNodePairs(Collection<List<Node>> highlighted) { 195 CheckParameterUtil.ensureParameterNotNull(highlighted, "highlighted"); 192 196 this.highlighted = highlighted; 193 197 return this; -
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r11129 r11135 400 400 for (OsmPrimitive p : primitives) { 401 401 if (!p.isIncomplete()) { 402 return null;402 return primitives; 403 403 } 404 404 }
Note:
See TracChangeset
for help on using the changeset viewer.