Ignore:
Timestamp:
2013-09-11T00:48:32+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar - Avoid instantiating Integer objects. Call Integer.valueOf() instead (more memory-friendly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/CodeProjectionChoice.java

    r5886 r6231  
    3636    String code;
    3737
     38    /**
     39     * Constructs a new {@code CodeProjectionChoice}.
     40     */
    3841    public CodeProjectionChoice() {
    3942        super(tr("By Code (EPSG)"), "core:code");
     
    7679                        int num1 = Integer.parseInt(matcher1.group(2));
    7780                        int num2 = Integer.parseInt(matcher2.group(2));
    78                         return new Integer(num1).compareTo(num2);
     81                        return Integer.valueOf(num1).compareTo(num2);
    7982                    } else
    8083                        return -1;
Note: See TracChangeset for help on using the changeset viewer.