Changeset 16643 in josm for trunk/src/org/openstreetmap/josm/data/projection
- Timestamp:
- 2020-06-14T20:19:59+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r16626 r16643 358 358 359 359 Pattern keyPattern = Pattern.compile("\\+(?<key>[a-zA-Z0-9_]+)(=(?<value>.*))?"); 360 String[] parts = Utils.WHITE_SPACES_PATTERN.split(trimmedPref );360 String[] parts = Utils.WHITE_SPACES_PATTERN.split(trimmedPref, -1); 361 361 for (String part : parts) { 362 362 Matcher m = keyPattern.matcher(part); … … 511 511 */ 512 512 public Datum parseToWGS84(String paramList, Ellipsoid ellps) throws ProjectionConfigurationException { 513 String[] numStr = paramList.split("," );513 String[] numStr = paramList.split(",", -1); 514 514 515 515 if (numStr.length != 3 && numStr.length != 7) … … 621 621 */ 622 622 public static Bounds parseBounds(String boundsStr) throws ProjectionConfigurationException { 623 String[] numStr = boundsStr.split("," );623 String[] numStr = boundsStr.split(",", -1); 624 624 if (numStr.length != 4) 625 625 throw new ProjectionConfigurationException(tr("Unexpected number of arguments for parameter ''+bounds'' (must be 4)")); -
trunk/src/org/openstreetmap/josm/data/projection/ProjectionCLI.java
r15716 r16643 166 166 167 167 private EastNorth parseEastNorth(String s, ToDoubleFunction<String> parser) { 168 String[] en = s.split("[;, ]+" );168 String[] en = s.split("[;, ]+", -1); 169 169 if (en.length != 2) 170 170 throw new IllegalArgumentException(tr("Expected two coordinates, separated by white space, found {0} in ''{1}''", en.length, s));
Note:
See TracChangeset
for help on using the changeset viewer.