Changeset 10760 in josm for trunk


Ignore:
Timestamp:
2016-08-07T17:49:25+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - squid:S2153 - Boxing and unboxing should not be immediately reversed

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement
Files:
2 edited

Legend:

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

    r10748 r10760  
    5454            );
    5555
    56             fillImage.alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.fill-image-alpha", 255))));
     56            fillImage.alpha = Math.min(255, Math.max(0, Main.pref.getInteger("mappaint.fill-image-alpha", 255)));
    5757            Integer pAlpha = Utils.colorFloat2int(c.get(FILL_OPACITY, null, float.class));
    5858            if (pAlpha != null) {
     
    6969                    // right, especially as named map colors can be changed in
    7070                    // the preference GUI and written to the preferences file.
    71                     alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.fillalpha", 50))));
     71                    alpha = Math.min(255, Math.max(0, Main.pref.getInteger("mappaint.fillalpha", 50)));
    7272                }
    7373                Integer pAlpha = Utils.colorFloat2int(c.get(FILL_OPACITY, null, float.class));
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/NodeElement.java

    r10748 r10760  
    184184        mapImage.offsetY = Math.round(offsetYF);
    185185
    186         mapImage.alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.icon-image-alpha", 255))));
     186        mapImage.alpha = Math.min(255, Math.max(0, Main.pref.getInteger("mappaint.icon-image-alpha", 255)));
    187187        Integer pAlpha = Utils.colorFloat2int(c.get(keys[ICON_OPACITY_IDX], null, float.class));
    188188        if (pAlpha != null) {
Note: See TracChangeset for help on using the changeset viewer.