Ignore:
Timestamp:
2013-09-19T02:14:38+02:00 (13 years ago)
Author:
Don-vip
Message:

Sonar - fix recently introduced issues

File:
1 edited

Legend:

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

    r6211 r6235  
    3030    private int defaultNodesIdx, defaultLinesIdx;
    3131
    32     public ElemStyles()
    33     {
     32    /**
     33     * Constructs a new {@code ElemStyles}.
     34     */
     35    public ElemStyles() {
    3436        styleSources = new ArrayList<StyleSource>();
    3537    }
     
    116118            osm.mappaintStyle = style.put(p.a, p.b);
    117119        } catch (StyleCache.RangeViolatedError e) {
    118             throw new AssertionError("Range violated. object: " + osm.getPrimitiveId() + ", current style: "+osm.mappaintStyle
     120            AssertionError error = new AssertionError("Range violated. object: " + osm.getPrimitiveId() + ", current style: "+osm.mappaintStyle
    119121                    + ", scale: " + scale + ", new stylelist: " + p.a + ", new range: " + p.b);
     122            error.initCause(e);
     123            throw error;
    120124        }
    121125        osm.mappaintCacheIdx = cacheIdx;
Note: See TracChangeset for help on using the changeset viewer.