Readability improvements as per MDB's suggestions.

This commit is contained in:
Mike Thomas
2006-12-05 17:40:00 +00:00
parent b3737c2b49
commit 93f82f372f
@@ -700,19 +700,20 @@ public abstract class Getdown extends Thread
File imgpath = null; File imgpath = null;
try { try {
// First try for a localized image. // First try for a localized image.
imgpath = imgpath = _app.getLocalPath(path.replace(".", "_" + localeStr + "."));
_app.getLocalPath(path.replace(".", "_" + localeStr + "."));
return ImageIO.read(imgpath); return ImageIO.read(imgpath);
} catch (IOException ioe) { } catch (IOException ioe) {
// If that didn't work, try a generic one. // No biggie, we'll try the generic one.
try { }
imgpath = _app.getLocalPath(path);
return ImageIO.read(imgpath); // If that didn't work, try a generic one.
} catch (IOException ioe2) { try {
Log.warning("Failed to load image [path=" + imgpath + imgpath = _app.getLocalPath(path);
", error=" + ioe2 + "]."); return ImageIO.read(imgpath);
return null; } catch (IOException ioe2) {
} Log.warning("Failed to load image [path=" + imgpath +
", error=" + ioe2 + "].");
return null;
} }
} }