Changeset 11309 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-11-25T23:11:07+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r11307 r11309 242 242 243 243 /** 244 * Constructs a new {@code TestError}.245 * @param tester The tester246 * @param severity The severity of this error247 * @param message The error message248 * @param description The translated description249 * @param descriptionEn The English description250 * @param code The test error reference code251 * @param primitives The affected primitives252 * @param highlighted OSM primitives to highlight253 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.254 */255 @Deprecated256 public TestError(Test tester, Severity severity, String message, String description, String descriptionEn,257 int code, Collection<? extends OsmPrimitive> primitives, Collection<?> highlighted) {258 this.tester = tester;259 this.severity = severity;260 this.message = message;261 this.description = description;262 this.descriptionEn = descriptionEn;263 this.primitives = primitives;264 this.highlighted = highlighted;265 this.code = code;266 this.fixingCommand = null;267 }268 269 /**270 * Constructs a new {@code TestError} without description.271 * @param tester The tester272 * @param severity The severity of this error273 * @param message The error message274 * @param code The test error reference code275 * @param primitives The affected primitives276 * @param highlighted OSM primitives to highlight277 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.278 */279 @Deprecated280 public TestError(Test tester, Severity severity, String message, int code, Collection<? extends OsmPrimitive> primitives,281 Collection<?> highlighted) {282 this(tester, severity, message, null, null, code, primitives, highlighted);283 }284 285 /**286 * Constructs a new {@code TestError}.287 * @param tester The tester288 * @param severity The severity of this error289 * @param message The error message290 * @param description The translated description291 * @param descriptionEn The English description292 * @param code The test error reference code293 * @param primitives The affected primitives294 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.295 */296 @Deprecated297 public TestError(Test tester, Severity severity, String message, String description, String descriptionEn,298 int code, Collection<? extends OsmPrimitive> primitives) {299 this(tester, severity, message, description, descriptionEn, code, primitives, primitives);300 }301 302 /**303 * Constructs a new {@code TestError} without description.304 * @param tester The tester305 * @param severity The severity of this error306 * @param message The error message307 * @param code The test error reference code308 * @param primitives The affected primitives309 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.310 */311 @Deprecated312 public TestError(Test tester, Severity severity, String message, int code, Collection<? extends OsmPrimitive> primitives) {313 this(tester, severity, message, null, null, code, primitives, primitives);314 }315 316 /**317 * Constructs a new {@code TestError} without description, for a single primitive.318 * @param tester The tester319 * @param severity The severity of this error320 * @param message The error message321 * @param code The test error reference code322 * @param primitive The affected primitive323 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.324 */325 @Deprecated326 public TestError(Test tester, Severity severity, String message, int code, OsmPrimitive primitive) {327 this(tester, severity, message, null, null, code, Collections.singletonList(primitive), Collections328 .singletonList(primitive));329 }330 331 /**332 * Constructs a new {@code TestError} for a single primitive.333 * @param tester The tester334 * @param severity The severity of this error335 * @param message The error message336 * @param description The translated description337 * @param descriptionEn The English description338 * @param code The test error reference code339 * @param primitive The affected primitive340 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.341 */342 @Deprecated343 public TestError(Test tester, Severity severity, String message, String description, String descriptionEn,344 int code, OsmPrimitive primitive) {345 this(tester, severity, message, description, descriptionEn, code, Collections.singletonList(primitive));346 }347 348 /**349 244 * Gets the error message 350 245 * @return the error message … … 363 258 364 259 /** 365 * Sets the error message366 * @param message The error message367 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.368 */369 @Deprecated370 public void setMessage(String message) {371 this.message = message;372 }373 374 /**375 260 * Gets the list of primitives affected by this error 376 261 * @return the list of primitives affected by this error … … 381 266 382 267 /** 383 * Sets the list of primitives affected by this error384 * @param primitives the list of primitives affected by this error*385 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.386 */387 @Deprecated388 public void setPrimitives(List<? extends OsmPrimitive> primitives) {389 this.primitives = primitives;390 }391 392 /**393 268 * Gets the severity of this error 394 269 * @return the severity of this error … … 396 271 public Severity getSeverity() { 397 272 return severity; 398 }399 400 /**401 * Sets the severity of this error402 * @param severity the severity of this error403 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.404 */405 @Deprecated406 public void setSeverity(Severity severity) {407 this.severity = severity;408 273 } 409 274 … … 464 329 465 330 /** 466 * Set the tester that raised the error.467 * @param tester te tester468 * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.469 */470 @Deprecated471 public void setTester(Test tester) {472 this.tester = tester;473 }474 475 /**476 331 * Gets the code 477 332 * @return the code
Note:
See TracChangeset
for help on using the changeset viewer.