Collapse identical catch branches

pull/844/head
Mark Janssen 2015-05-24 18:25:23 +02:00 committed by Justin Richer
parent 6dc2b2cb5e
commit 13f5e4f8a6
2 changed files with 1 additions and 7 deletions

View File

@ -114,8 +114,6 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
out.close();
} catch (FileNotFoundException e) {
logger.error("Could not write to output file", e);
} catch (IOException e) {
logger.error("Could not write to output file", e);
}
@ -137,8 +135,6 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
in.close();
} catch (FileNotFoundException e) {
logger.error("Could not read from input file", e);
} catch (IOException e) {
logger.error("Could not read from input file", e);
}

View File

@ -107,9 +107,7 @@ public class SymmetricKeyJWTValidatorCacheService {
return service;
} catch (NoSuchAlgorithmException e) {
logger.error("Couldn't create symmetric validator for client", e);
} catch (InvalidKeySpecException e) {
} catch (NoSuchAlgorithmException | InvalidKeySpecException e) {
logger.error("Couldn't create symmetric validator for client", e);
}