Changeset 7356 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-08-01T19:17:40+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r7321 r7356 1053 1053 } 1054 1054 1055 /** 1056 * Determines if the given URL denotes a file on a local filesystem. 1057 * @param url The URL to test 1058 * @return {@code true} if the url points to a local file 1059 * @since 7356 1060 */ 1061 public static boolean isLocalUrl(String url) { 1062 if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("resource://")) 1063 return false; 1064 return true; 1065 } 1055 1066 }
Note: See TracChangeset
for help on using the changeset viewer.