Changeset 16643 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences
- Timestamp:
- 2020-06-14T20:19:59+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r16438 r16643 248 248 // Check if we have received an error message 249 249 String error = helper.detectErrorMessage(new String(data, StandardCharsets.UTF_8)); 250 String errorMsg = url + zoomMarker(zoom) + (error != null ? error.split("\\n" )[0] : defaultMessage);250 String errorMsg = url + zoomMarker(zoom) + (error != null ? error.split("\\n", -1)[0] : defaultMessage); 251 251 addError(info, errorMsg); 252 252 return errorMsg; … … 344 344 345 345 private static boolean isZoomError(String error) { 346 String[] parts = error.split(ERROR_SEP );346 String[] parts = error.split(ERROR_SEP, -1); 347 347 String lastPart = parts.length > 0 ? parts[parts.length - 1].toLowerCase(Locale.ENGLISH) : ""; 348 348 return lastPart.contains("bbox")
Note:
See TracChangeset
for help on using the changeset viewer.