Changeset 8390 in josm for trunk/src/org/openstreetmap/josm/io/imagery
- Timestamp:
- 2015-05-18T02:14:30+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r8349 r8390 263 263 Integer val = null; 264 264 try { 265 val = Integer. parseInt(accumulator.toString());265 val = Integer.valueOf(accumulator.toString()); 266 266 } catch(NumberFormatException e) { 267 267 val = null; … … 304 304 Integer tileSize = null; 305 305 try { 306 tileSize = Integer.parseInt(accumulator.toString());306 tileSize = Integer.valueOf(accumulator.toString()); 307 307 } catch(NumberFormatException e) { 308 308 tileSize = null; -
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r8379 r8390 81 81 } 82 82 StringBuilder a = new StringBuilder(serviceUrl.getProtocol()); 83 a.append("://") 84 .append(serviceUrl.getHost()); 83 a.append("://").append(serviceUrl.getHost()); 85 84 if (serviceUrl.getPort() != -1) { 86 a.append(":") 87 .append(serviceUrl.getPort()); 88 } 89 a.append(serviceUrl.getPath()) 90 .append("?"); 85 a.append(':').append(serviceUrl.getPort()); 86 } 87 a.append(serviceUrl.getPath()).append('?'); 91 88 if (serviceUrl.getQuery() != null) { 92 89 a.append(serviceUrl.getQuery()); 93 90 if (!serviceUrl.getQuery().isEmpty() && !serviceUrl.getQuery().endsWith("&")) { 94 a.append( "&");91 a.append('&'); 95 92 } 96 93 } … … 150 147 while ((line = br.readLine()) != null) { 151 148 ba.append(line); 152 ba.append( "\n");149 ba.append('\n'); 153 150 } 154 151 }
Note:
See TracChangeset
for help on using the changeset viewer.