Changeset 4298 in josm for trunk/src/org
- Timestamp:
- 2011-08-08T00:22:04+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r3083 r4298 2 2 package org.openstreetmap.josm.tools; 3 3 4 import java.io.UnsupportedEncodingException; 5 import java.net.URLDecoder; 4 6 import java.util.HashMap; 5 7 import java.util.Map; … … 12 14 13 15 public static Bounds parse(String url) { 16 try { 17 // a percent sign indicates an encoded URL (RFC 1738). 18 if (url.contains("%")) { 19 url = URLDecoder.decode(url, "UTF-8"); 20 } 21 } catch (UnsupportedEncodingException x) { 22 } catch (IllegalArgumentException x) { 23 } 14 24 Bounds b = parseShortLink(url); 15 25 if (b != null) … … 50 60 } catch (NumberFormatException x) { 51 61 } catch (NullPointerException x) { 62 } catch (ArrayIndexOutOfBoundsException x) { 52 63 } 53 64 return b;
Note:
See TracChangeset
for help on using the changeset viewer.