Changeset 11309 in josm


Ignore:
Timestamp:
2016-11-25T23:11:07+01:00 (8 years ago)
Author:
Don-vip
Message:

see #14015 see #13799 - remove deprecated stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r11307 r11309  
    242242
    243243    /**
    244      * Constructs a new {@code TestError}.
    245      * @param tester The tester
    246      * @param severity The severity of this error
    247      * @param message The error message
    248      * @param description The translated description
    249      * @param descriptionEn The English description
    250      * @param code The test error reference code
    251      * @param primitives The affected primitives
    252      * @param highlighted OSM primitives to highlight
    253      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    254      */
    255     @Deprecated
    256     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 tester
    272      * @param severity The severity of this error
    273      * @param message The error message
    274      * @param code The test error reference code
    275      * @param primitives The affected primitives
    276      * @param highlighted OSM primitives to highlight
    277      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    278      */
    279     @Deprecated
    280     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 tester
    288      * @param severity The severity of this error
    289      * @param message The error message
    290      * @param description The translated description
    291      * @param descriptionEn The English description
    292      * @param code The test error reference code
    293      * @param primitives The affected primitives
    294      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    295      */
    296     @Deprecated
    297     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 tester
    305      * @param severity The severity of this error
    306      * @param message The error message
    307      * @param code The test error reference code
    308      * @param primitives The affected primitives
    309      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    310      */
    311     @Deprecated
    312     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 tester
    319      * @param severity The severity of this error
    320      * @param message The error message
    321      * @param code The test error reference code
    322      * @param primitive The affected primitive
    323      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    324      */
    325     @Deprecated
    326     public TestError(Test tester, Severity severity, String message, int code, OsmPrimitive primitive) {
    327         this(tester, severity, message, null, null, code, Collections.singletonList(primitive), Collections
    328                 .singletonList(primitive));
    329     }
    330 
    331     /**
    332      * Constructs a new {@code TestError} for a single primitive.
    333      * @param tester The tester
    334      * @param severity The severity of this error
    335      * @param message The error message
    336      * @param description The translated description
    337      * @param descriptionEn The English description
    338      * @param code The test error reference code
    339      * @param primitive The affected primitive
    340      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    341      */
    342     @Deprecated
    343     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     /**
    349244     * Gets the error message
    350245     * @return the error message
     
    363258
    364259    /**
    365      * Sets the error message
    366      * @param message The error message
    367      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    368      */
    369     @Deprecated
    370     public void setMessage(String message) {
    371         this.message = message;
    372     }
    373 
    374     /**
    375260     * Gets the list of primitives affected by this error
    376261     * @return the list of primitives affected by this error
     
    381266
    382267    /**
    383      * Sets the list of primitives affected by this error
    384      * @param primitives the list of primitives affected by this error*
    385      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    386      */
    387     @Deprecated
    388     public void setPrimitives(List<? extends OsmPrimitive> primitives) {
    389         this.primitives = primitives;
    390     }
    391 
    392     /**
    393268     * Gets the severity of this error
    394269     * @return the severity of this error
     
    396271    public Severity getSeverity() {
    397272        return severity;
    398     }
    399 
    400     /**
    401      * Sets the severity of this error
    402      * @param severity the severity of this error
    403      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    404      */
    405     @Deprecated
    406     public void setSeverity(Severity severity) {
    407         this.severity = severity;
    408273    }
    409274
     
    464329
    465330    /**
    466      * Set the tester that raised the error.
    467      * @param tester te tester
    468      * @deprecated Use {@link #builder} instead. Will be removed in 2016-12.
    469      */
    470     @Deprecated
    471     public void setTester(Test tester) {
    472         this.tester = tester;
    473     }
    474 
    475     /**
    476331     * Gets the code
    477332     * @return the code
Note: See TracChangeset for help on using the changeset viewer.