Changeset 12907 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/RenderingCLI.java
r12906 r12907 252 252 try { 253 253 argBounds = new Bounds(getopt.getOptarg(), ",", Bounds.ParseMethod.LEFT_BOTTOM_RIGHT_TOP, false); 254 } catch (IllegalArgumentException iae) { 254 } catch (IllegalArgumentException iae) { // NOPMD 255 255 throw new IllegalArgumentException(tr("Unable to parse {0} parameter: {1}", "--bounds", iae.getMessage())); 256 256 } … … 292 292 double lat = LatLonParser.parseCoordinate(parts[1]); 293 293 argAnchor = new LatLon(lat, lon); 294 } catch (IllegalArgumentException iae) { 294 } catch (IllegalArgumentException iae) { // NOPMD 295 295 throw new IllegalArgumentException(tr("In option {0}: {1}", "--anchor", iae.getMessage())); 296 296 } … … 436 436 Config.getPref().putBoolean("mappaint.auto_reload_local_styles", false); // unnecessary to listen for external changes 437 437 String projCode = Optional.ofNullable(argProjection).orElse("epsg:3857"); 438 Main.setProjection(Projections.getProjectionByCode(projCode.toUpperCase( )));438 Main.setProjection(Projections.getProjectionByCode(projCode.toUpperCase(Locale.US))); 439 439 440 440 RightAndLefthandTraffic.initialize(); -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/RenderingCLIAreaTest.java
r12906 r12907 32 32 @Rule 33 33 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 34 public JOSMTestRules test = new JOSMTestRules().projection() ;34 public JOSMTestRules test = new JOSMTestRules().projection().territories(); 35 35 36 36 @Parameterized.Parameters … … 163 163 RenderingCLI cli = new RenderingCLI(); 164 164 cli.parseArguments(args); 165 cli.initialize();166 165 RenderingCLI.RenderingArea ra = cli.determineRenderingArea(null); 167 166 Assert.assertThat(ra.scale, scaleMatcher);
Note: See TracChangeset
for help on using the changeset viewer.