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:
@@ -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) {
|
||||
|
@@ -75,6 +75,7 @@ class LdapQuery {
|
||||
r.add(new Result(res.next()));
|
||||
}
|
||||
} catch (PartialResultException e) {
|
||||
// Ignored
|
||||
}
|
||||
return r;
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user