Changeset 14105 in josm for trunk/src/org
- Timestamp:
- 2018-08-07T20:26:10+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r13991 r14105 978 978 try { 979 979 img = read(Utils.fileToURL(cf.getFile()), false, false); 980 } catch (IOException e) {981 Logging.log(Logging.LEVEL_WARN, " IOException while reading HTTP image:", e);980 } catch (IOException | UnsatisfiedLinkError e) { 981 Logging.log(Logging.LEVEL_WARN, "Exception while reading HTTP image:", e); 982 982 } 983 983 return img == null ? null : new ImageResource(img); … … 1035 1035 Image img = read(new ByteArrayInputStream(bytes), false, true); 1036 1036 return img == null ? null : new ImageResource(img); 1037 } catch (IOException e) {1038 Logging.log(Logging.LEVEL_WARN, " IOException while reading image:", e);1037 } catch (IOException | UnsatisfiedLinkError e) { 1038 Logging.log(Logging.LEVEL_WARN, "Exception while reading image:", e); 1039 1039 } 1040 1040 } … … 1120 1120 try { 1121 1121 img = read(new ByteArrayInputStream(buf), false, false); 1122 } catch (IOException e) {1122 } catch (IOException | UnsatisfiedLinkError e) { 1123 1123 Logging.warn(e); 1124 1124 } … … 1129 1129 } 1130 1130 } 1131 } catch (IOException e) {1131 } catch (IOException | UnsatisfiedLinkError e) { 1132 1132 Logging.log(Logging.LEVEL_WARN, tr("Failed to handle zip file ''{0}''. Exception was: {1}", archive.getName(), e.toString()), e); 1133 1133 } … … 1165 1165 Logging.debug("Transparency has been forced for image {0}", path); 1166 1166 } 1167 } catch (IOException e) {1167 } catch (IOException | UnsatisfiedLinkError e) { 1168 1168 Logging.log(Logging.LEVEL_WARN, "Unable to read image", e); 1169 1169 Logging.debug(e);
Note:
See TracChangeset
for help on using the changeset viewer.