Use try/multi-catch
Change-Id: Icf5042cccb0662d6bd53302800e03211af94c16d
This commit is contained in:

committed by
David Pursehouse

parent
8702786e5a
commit
64cfaf242d
@@ -145,9 +145,7 @@ public class AuthSMTPClient extends SMTPClient {
|
||||
Mac mac = Mac.getInstance(macName);
|
||||
mac.init(new SecretKeySpec(smtpPass.getBytes(UTF_8), macName));
|
||||
sec = toHex(mac.doFinal(nonce));
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
throw new IOException("Cannot use CRAM-" + alg, e);
|
||||
} catch (InvalidKeyException e) {
|
||||
} catch (NoSuchAlgorithmException | InvalidKeyException e) {
|
||||
throw new IOException("Cannot use CRAM-" + alg, e);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user