Ignore:
Timestamp:
2013-08-31T10:23:58+02:00 (13 years ago)
Author:
bastiK
Message:

see #8997 - add more debug output in case of error

File:
1 edited

Legend:

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

    r6070 r6211  
    1414/**
    1515 * Caches styles for a single primitive.
    16  * Splits the range of possible scale values (0 < scale < +Infinity) into multiple
     16 * Splits the range of possible scale values (0 &lt; scale &lt; +Infinity) into multiple
    1717 * subranges, for each scale range it keeps a list of styles.
    1818 * Immutable class, equals & hashCode is required (the same for StyleList, ElemStyle
     
    142142    }
    143143
     144    // this exception type is for debugging #8997 and can later be replaced
     145    // by AssertionError
     146    public static class RangeViolatedError extends Error {
     147    }
     148
    144149    /**
    145150     * ASCII-art explanation:
     
    159164        if (bd.get(i) == lower) {
    160165            if (upper > bd.get(i+1))
    161                 throw new AssertionError("the new range must be within a single subrange");
     166                throw new RangeViolatedError();
    162167            if (data.get(i) != null)
    163168                throw new AssertionError("the new range must be within a subrange that has no data");
Note: See TracChangeset for help on using the changeset viewer.