Changeset 10236 in josm


Ignore:
Timestamp:
2016-05-17T02:13:45+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - squid:S1194 - "java.lang.Error" should not be extended

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/DividedScale.java

    r10145 r10236  
    2323public class DividedScale<T> {
    2424
    25     // this exception type is for debugging #8997 and can later be replaced
    26     // by AssertionError
    27     public static class RangeViolatedError extends Error {
    28         public RangeViolatedError() {
    29         }
    30 
     25    /**
     26     * This exception type is for debugging #8997 and can later be replaced by AssertionError
     27     */
     28    public static class RangeViolatedError extends RuntimeException {
     29        /**
     30         * Constructs a new {@code RangeViolatedError}
     31         * @param message error message
     32         */
    3133        public RangeViolatedError(String message) {
    3234            super(message);
Note: See TracChangeset for help on using the changeset viewer.