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:
zzz
2015-11-12 18:49:13 +00:00
parent 37a4fcb469
commit 51c5da3f72
78 changed files with 235 additions and 136 deletions

View File

@@ -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.");
}

View File

@@ -205,7 +205,7 @@ public class NamingServiceBean extends AddressbookBean
message = generateLoadMessage();
}
catch (Exception e) {
catch (RuntimeException e) {
warn(e);
}
if( message.length() > 0 )