forked from I2P_Developers/i2p.i2p
lint: don't catch Exception, catch RuntimeException or checked exception.
omits SAM, BOB, reflection, commented-out code, and a few other places
This commit is contained in:
@@ -164,7 +164,7 @@ public class AddressbookBean extends BaseBean
|
||||
|
||||
message = generateLoadMessage();
|
||||
}
|
||||
catch (Exception e) {
|
||||
catch (IOException e) {
|
||||
warn(e);
|
||||
} finally {
|
||||
if (fis != null)
|
||||
@@ -316,7 +316,7 @@ public class AddressbookBean extends BaseBean
|
||||
try {
|
||||
save();
|
||||
message += "<br>" + _t("Address book saved.");
|
||||
} catch (Exception e) {
|
||||
} catch (IOException e) {
|
||||
warn(e);
|
||||
message += "<br>" + _t("ERROR: Could not write addressbook file.");
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ public class NamingServiceBean extends AddressbookBean
|
||||
|
||||
message = generateLoadMessage();
|
||||
}
|
||||
catch (Exception e) {
|
||||
catch (RuntimeException e) {
|
||||
warn(e);
|
||||
}
|
||||
if( message.length() > 0 )
|
||||
|
||||
Reference in New Issue
Block a user