Changeset 8846 in josm for trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
- Timestamp:
- 2015-10-10T01:40:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r8840 r8846 720 720 subdir = ""; 721 721 } else if (!subdir.isEmpty() && !subdir.endsWith("/")) { 722 subdir += "/";722 subdir += '/'; 723 723 } 724 724 String[] extensions; … … 742 742 /* cache separately */ 743 743 if (dirs != null && !dirs.isEmpty()) { 744 cacheName = "id:" + id + ":"+ fullName;744 cacheName = "id:" + id + ':' + fullName; 745 745 if (archive != null) { 746 cacheName += ":"+ archive.getName();746 cacheName += ':' + archive.getName(); 747 747 } 748 748 } … … 838 838 bytes = Utils.decodeUrl(data).getBytes(StandardCharsets.UTF_8); 839 839 } catch (IllegalArgumentException ex) { 840 Main.warn("Unable to decode URL data part: "+ex.getMessage() + " (" + data + ")");840 Main.warn("Unable to decode URL data part: "+ex.getMessage() + " (" + data + ')'); 841 841 return null; 842 842 } … … 898 898 } else { 899 899 final String fn_md5 = Utils.md5Hex(fn); 900 url = b + fn_md5.substring(0, 1) + "/"+ fn_md5.substring(0, 2) + "/" + fn;900 url = b + fn_md5.substring(0, 1) + '/' + fn_md5.substring(0, 2) + "/" + fn; 901 901 } 902 902 result = getIfAvailableHttp(url, type); … … 922 922 inArchiveDir = ""; 923 923 } else if (!inArchiveDir.isEmpty()) { 924 inArchiveDir += "/";924 inArchiveDir += '/'; 925 925 } 926 926 String entryName = inArchiveDir + fullName; … … 1142 1142 } 1143 1143 if (GraphicsEnvironment.isHeadless()) { 1144 Main.warn("Cursors are not available in headless mode. Returning null for '"+name+ "'");1144 Main.warn("Cursors are not available in headless mode. Returning null for '"+name+'\''); 1145 1145 return null; 1146 1146 }
Note:
See TracChangeset
for help on using the changeset viewer.