- Timestamp:
- 2016-10-16T20:21:22+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r11130 r11134 141 141 CheckParameterUtil.ensureThat(this.primitives == null, "primitives already set"); 142 142 this.primitives = primitives; 143 if (this.highlighted == null) { 144 this.highlighted = primitives; 145 } 143 146 return this; 144 147 } … … 163 166 */ 164 167 public Builder highlight(Collection<? extends OsmPrimitive> highlighted) { 165 CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set");166 168 this.highlighted = highlighted; 167 169 return this; … … 176 178 */ 177 179 public Builder highlightWaySegments(Collection<WaySegment> highlighted) { 178 CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set");179 180 this.highlighted = highlighted; 180 181 return this; … … 189 190 */ 190 191 public Builder highlightNodePairs(Collection<List<Node>> highlighted) { 191 CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set");192 192 this.highlighted = highlighted; 193 193 return this;
Note:
See TracChangeset
for help on using the changeset viewer.