Changeset 11130 in josm
- Timestamp:
- 2016-10-15T20:56:20+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r11129 r11130 139 139 */ 140 140 public Builder primitives(Collection<? extends OsmPrimitive> primitives) { 141 CheckParameterUtil.ensureThat(this.primitives != null, "primitives already set");141 CheckParameterUtil.ensureThat(this.primitives == null, "primitives already set"); 142 142 this.primitives = primitives; 143 143 return this; … … 163 163 */ 164 164 public Builder highlight(Collection<? extends OsmPrimitive> highlighted) { 165 CheckParameterUtil.ensureThat(this.highlighted != null, "highlighted already set");165 CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set"); 166 166 this.highlighted = highlighted; 167 167 return this; … … 176 176 */ 177 177 public Builder highlightWaySegments(Collection<WaySegment> highlighted) { 178 CheckParameterUtil.ensureThat(this.highlighted != null, "highlighted already set");178 CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set"); 179 179 this.highlighted = highlighted; 180 180 return this; … … 189 189 */ 190 190 public Builder highlightNodePairs(Collection<List<Node>> highlighted) { 191 CheckParameterUtil.ensureThat(this.highlighted != null, "highlighted already set");191 CheckParameterUtil.ensureThat(this.highlighted == null, "highlighted already set"); 192 192 this.highlighted = highlighted; 193 193 return this; … … 201 201 */ 202 202 public Builder fix(Supplier<Command> fixingCommand) { 203 CheckParameterUtil.ensureThat(this.fixingCommand != null, "fixingCommand already set");203 CheckParameterUtil.ensureThat(this.fixingCommand == null, "fixingCommand already set"); 204 204 this.fixingCommand = fixingCommand; 205 205 return this;
Note:
See TracChangeset
for help on using the changeset viewer.