Ignore:
Timestamp:
2015-05-18T02:14:30+02:00 (9 years ago)
Author:
Don-vip
Message:

Sonar - various performance improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/preferences/IntegerProperty.java

    r5464 r8390  
    66/**
    77 * A property containing an {@code Integer} value.
     8 * @since 3246
    89 */
    910public class IntegerProperty extends AbstractProperty<Integer> {
     
    3536     */
    3637    public boolean parseAndPut(String value) {
    37         Integer intVal;
    3838        try {
    39             intVal = Integer.parseInt(value);
     39            return put(Integer.valueOf(value));
    4040        } catch (NumberFormatException ex) {
    4141            return false;
    4242        }
    43         return put(intVal);
    4443    }
    4544}
Note: See TracChangeset for help on using the changeset viewer.