Changeset 12907 in josm for trunk/src


Ignore:
Timestamp:
2017-09-29T13:26:48+02:00 (7 years ago)
Author:
bastiK
Message:

see #15273, see #15229 - fix tests and Jenkins warnings

File:
1 edited

Legend:

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

    r12906 r12907  
    252252                    try {
    253253                        argBounds = new Bounds(getopt.getOptarg(), ",", Bounds.ParseMethod.LEFT_BOTTOM_RIGHT_TOP, false);
    254                     } catch (IllegalArgumentException iae) {
     254                    } catch (IllegalArgumentException iae) { // NOPMD
    255255                        throw new IllegalArgumentException(tr("Unable to parse {0} parameter: {1}", "--bounds", iae.getMessage()));
    256256                    }
     
    292292                        double lat = LatLonParser.parseCoordinate(parts[1]);
    293293                        argAnchor = new LatLon(lat, lon);
    294                     } catch (IllegalArgumentException iae) {
     294                    } catch (IllegalArgumentException iae) { // NOPMD
    295295                        throw new IllegalArgumentException(tr("In option {0}: {1}", "--anchor", iae.getMessage()));
    296296                    }
     
    436436        Config.getPref().putBoolean("mappaint.auto_reload_local_styles", false); // unnecessary to listen for external changes
    437437        String projCode = Optional.ofNullable(argProjection).orElse("epsg:3857");
    438         Main.setProjection(Projections.getProjectionByCode(projCode.toUpperCase()));
     438        Main.setProjection(Projections.getProjectionByCode(projCode.toUpperCase(Locale.US)));
    439439
    440440        RightAndLefthandTraffic.initialize();
Note: See TracChangeset for help on using the changeset viewer.