Changeset 18801 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2023-08-09T15:30:01+02:00 (21 months ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
r18208 r18801 265 265 * <code>d</code> d is a date relative to the current time zone. 266 266 * 267 * @param d the date 267 * @param d the date. Must not be null. 268 268 * @return the restricted changeset query 269 269 * @throws IllegalArgumentException if d is null … … 570 570 * see <a href="http://wiki.openstreetmap.org/wiki/API_v0.6#Query:_GET_.2Fapi.2F0.6.2Fchangesets">OSM API</a>. 571 571 * 572 * Example for a nquery string:<br>572 * Example for a query string:<br> 573 573 * <pre> 574 574 * uid=1234&open=true -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r18663 r18801 60 60 * is defined <strong>at startup</strong>. It has no effect if the property is set 61 61 * later by the application. 62 * 63 * We therefore read the property at class loading time and remember it 's value.62 * <p> 63 * We therefore read the property at class loading time and remember its value. 64 64 */ 65 65 private static boolean jvmWillUseSystemProxies; -
trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java
r18623 r18801 105 105 /** 106 106 * Postprocesses the diff result read and parsed from the server. 107 * 107 * <p> 108 108 * Uploaded objects are assigned their new id (if they got assigned a new 109 109 * id by the server), their new version (if the version was incremented), -
trunk/src/org/openstreetmap/josm/io/IGpxReader.java
r18179 r18801 33 33 34 34 /** 35 * Returns the number of coordinates that have been successfuly read. 36 * @return the number of coordinates that have been successfuly read 35 * Returns the number of coordinates that have been successfully read. 36 * @return the number of coordinates that have been successfully read 37 37 * @since 18179 38 38 */ -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r18779 r18801 809 809 errorHeader = response.getHeaderField("Error"); 810 810 Logging.error("Error header: " + errorHeader); 811 } else if (retCode != HttpURLConnection.HTTP_OK && responseBody. length() > 0) {811 } else if (retCode != HttpURLConnection.HTTP_OK && !responseBody.isEmpty()) { 812 812 Logging.error("Error body: " + responseBody); 813 813 } … … 815 815 816 816 errorHeader = errorHeader == null ? null : errorHeader.trim(); 817 String errorBody = responseBody. length() == 0? null : responseBody.trim();817 String errorBody = responseBody.isEmpty() ? null : responseBody.trim(); 818 818 switch(retCode) { 819 819 case HttpURLConnection.HTTP_OK: -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r18695 r18801 487 487 488 488 /** 489 * Exception thrown after user cancelation. 489 * Exception thrown after user cancellation. 490 490 */ 491 491 private static final class OsmParsingCanceledException extends XmlStreamParsingException implements ImportCancelException { -
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r18780 r18801 509 509 } 510 510 // TODO should we handle also POST? 511 if ("GET".equalsIgnoreCase(mode) && getMapUrl != null && ! "".equals(getMapUrl)) {511 if ("GET".equalsIgnoreCase(mode) && getMapUrl != null && !getMapUrl.isEmpty()) { 512 512 try { 513 513 String query = new URL(getMapUrl).getQuery(); -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r18211 r18801 160 160 161 161 /** 162 * Returns usage examples for the given command. To be overriden only my handlers that define several commands. 162 * Returns usage examples for the given command. To be overridden only my handlers that define several commands. 163 163 * @param cmd The command asked 164 164 * @return Usage examples for the given command … … 203 203 if (GLOBAL_CONFIRMATION.get()) { 204 204 // Ensure dialog box does not exceed main window size 205 IntegermaxWidth = (int) Math.max(200, MainApplication.getMainFrame().getWidth()*0.6);205 int maxWidth = (int) Math.max(200, MainApplication.getMainFrame().getWidth() * 0.6); 206 206 String message = "<html><div>" + getPermissionMessage() + 207 207 "<br/>" + tr("Do you want to allow this?") + "</div></html>"; … … 357 357 DownloadParams result = new DownloadParams(); 358 358 if (args != null) { 359 result = result 360 .withNewLayer(isLoadInNewLayer()) 361 .withLayerName(args.get("layer_name")) 362 .withLocked(get("layer_locked")) 363 .withDownloadPolicy(get("download_policy", DownloadPolicy::of, () -> DownloadPolicy.NORMAL)) 364 .withUploadPolicy(get("upload_policy", UploadPolicy::of, () -> UploadPolicy.NORMAL)); 359 result.withNewLayer(isLoadInNewLayer()) 360 .withLayerName(args.get("layer_name")) 361 .withLocked(get("layer_locked")) 362 .withDownloadPolicy(get("download_policy", DownloadPolicy::of, () -> DownloadPolicy.NORMAL)) 363 .withUploadPolicy(get("upload_policy", UploadPolicy::of, () -> UploadPolicy.NORMAL)); 365 364 } 366 365 return result; … … 498 497 499 498 /** 500 * Handler that takes a n URL asparameter.499 * Handler that takes a URL as a parameter. 501 500 */ 502 501 public abstract static class RawURLParseRequestHandler extends RequestHandler {
Note:
See TracChangeset
for help on using the changeset viewer.