Fix Checkstyle warnings about empty catch blocks

Most of them are empty because the exceptions are ignored.  In these
cases add an "Ignored" comment to prevent the warning.

In the other couple of cases the problem might be worth investigation
by an admin, so add a warning log.

Change-Id: I415fa042f5205cb0745ef7286fba5f5910f1dedd
This commit is contained in:
David Pursehouse
2015-08-25 18:04:25 +09:00
parent 717b98fe46
commit f73fccea80
20 changed files with 26 additions and 1 deletions

View File

@@ -263,6 +263,7 @@ import javax.security.auth.login.LoginException;
recursivelyExpandGroups(groupDNs, schema, ctx, nextDN);
}
} catch (PartialResultException e) {
// Ignored
}
}
}
@@ -298,6 +299,7 @@ import javax.security.auth.login.LoginException;
dns.add((String) groups.next());
}
} catch (PartialResultException e) {
// Ignored
}
}
} catch (NamingException e) {

View File

@@ -75,6 +75,7 @@ class LdapQuery {
r.add(new Result(res.next()));
}
} catch (PartialResultException e) {
// Ignored
}
return r;
} finally {