Ignore:
Timestamp:
2016-03-26T15:10:06+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2129 - Constructors should not be used to instantiate "String" and primitive-wrapper classes

File:
1 edited

Legend:

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

    r9983 r10045  
    9090            o = toFloat(o);
    9191            if (o != null) {
    92                 o = new Double((Float) o);
     92                o = Double.valueOf((Float) o);
    9393            }
    9494            return (T) o;
     
    113113                    return (T) String.format("#%06x%02x", ((Color) o).getRGB() & 0x00ffffff, alpha);
    114114                return (T) String.format("#%06x", ((Color) o).getRGB() & 0x00ffffff);
    115 
    116115            }
    117116
Note: See TracChangeset for help on using the changeset viewer.