Changeset 13399 in josm


Ignore:
Timestamp:
2018-02-10T01:34:41+01:00 (6 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:NAB_NEEDLESS_BOXING_VALUEOF - Method converts String to boxed primitive using excessive boxing

File:
1 edited

Legend:

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

    r13207 r13399  
    228228            case 'z':
    229229                try {
    230                     argZoom = Integer.parseInt(getopt.getOptarg());
     230                    argZoom = Integer.valueOf(getopt.getOptarg());
    231231                } catch (NumberFormatException nfe) {
    232232                    throw new IllegalArgumentException(
     
    307307                case WIDTH_PX:
    308308                    try {
    309                         argWidthPx = Integer.parseInt(getopt.getOptarg());
     309                        argWidthPx = Integer.valueOf(getopt.getOptarg());
    310310                    } catch (NumberFormatException nfe) {
    311311                        throw new IllegalArgumentException(
     
    317317                case HEIGHT_PX:
    318318                    try {
    319                         argHeightPx = Integer.parseInt(getopt.getOptarg());
     319                        argHeightPx = Integer.valueOf(getopt.getOptarg());
    320320                    } catch (NumberFormatException nfe) {
    321321                        throw new IllegalArgumentException(
     
    330330                case MAX_IMAGE_SIZE:
    331331                    try {
    332                         argMaxImageSize = Integer.parseInt(getopt.getOptarg());
     332                        argMaxImageSize = Integer.valueOf(getopt.getOptarg());
    333333                    } catch (NumberFormatException nfe) {
    334334                        throw new IllegalArgumentException(
Note: See TracChangeset for help on using the changeset viewer.