1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Java 7: Identical 'catch' branches in 'try' statement

This commit is contained in:
Lars Grefer
2019-08-09 00:48:57 +02:00
committed by Rob Winch
parent 5e44a249f8
commit 25c06be1eb
5 changed files with 9 additions and 43 deletions
@@ -111,11 +111,7 @@ public class DefaultAuthenticationEventPublisher implements AuthenticationEventP
try {
event = constructor.newInstance(authentication, exception);
}
catch (IllegalAccessException ignored) {
}
catch (InstantiationException ignored) {
}
catch (InvocationTargetException ignored) {
catch (IllegalAccessException | InvocationTargetException | InstantiationException ignored) {
}
}
@@ -179,17 +179,12 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
break;
}
}
catch (AccountStatusException e) {
catch (AccountStatusException | InternalAuthenticationServiceException e) {
prepareException(e, authentication);
// SEC-546: Avoid polling additional providers if auth failure is due to
// invalid account status
throw e;
}
catch (InternalAuthenticationServiceException e) {
prepareException(e, authentication);
throw e;
}
catch (AuthenticationException e) {
} catch (AuthenticationException e) {
lastException = e;
}
}