Skip to content

Commit 13f5e4f

Browse files
praseodymjricher
authored andcommitted
Collapse identical catch branches
1 parent 6dc2b2c commit 13f5e4f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

openid-connect-client/src/main/java/org/mitre/openid/connect/client/service/impl/JsonFileRegisteredClientService.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ private void write() {
114114

115115
out.close();
116116

117-
} catch (FileNotFoundException e) {
118-
logger.error("Could not write to output file", e);
119117
} catch (IOException e) {
120118
logger.error("Could not write to output file", e);
121119
}
@@ -137,8 +135,6 @@ private void load() {
137135

138136
in.close();
139137

140-
} catch (FileNotFoundException e) {
141-
logger.error("Could not read from input file", e);
142138
} catch (IOException e) {
143139
logger.error("Could not read from input file", e);
144140
}

openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/SymmetricKeyJWTValidatorCacheService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ public JWTSigningAndValidationService load(String key) throws Exception {
107107

108108
return service;
109109

110-
} catch (NoSuchAlgorithmException e) {
111-
logger.error("Couldn't create symmetric validator for client", e);
112-
} catch (InvalidKeySpecException e) {
110+
} catch (NoSuchAlgorithmException | InvalidKeySpecException e) {
113111
logger.error("Couldn't create symmetric validator for client", e);
114112
}
115113

0 commit comments

Comments
 (0)