1
0
mirror of synced 2026-08-05 17:57:15 +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
@@ -116,11 +116,7 @@ public class OpenID4JavaConsumer implements OpenIDConsumer {
authReq.addExtension(fetchRequest);
}
}
catch (MessageException e) {
throw new OpenIDConsumerException(
"Error processing ConsumerManager authentication", e);
}
catch (ConsumerException e) {
catch (MessageException | ConsumerException e) {
throw new OpenIDConsumerException(
"Error processing ConsumerManager authentication", e);
}
@@ -164,13 +160,7 @@ public class OpenID4JavaConsumer implements OpenIDConsumer {
verification = consumerManager.verify(receivingURL.toString(), openidResp,
discovered);
}
catch (MessageException e) {
throw new OpenIDConsumerException("Error verifying openid response", e);
}
catch (DiscoveryException e) {
throw new OpenIDConsumerException("Error verifying openid response", e);
}
catch (AssociationException e) {
catch (MessageException | AssociationException | DiscoveryException e) {
throw new OpenIDConsumerException("Error verifying openid response", e);
}