mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8284415: Collapse identical catch branches in security libs
Reviewed-by: coffeys, xuelei, wetmore
This commit is contained in:
parent
4f36229c96
commit
8e58d4a589
32 changed files with 74 additions and 197 deletions
|
@ -29,13 +29,11 @@ import java.io.*;
|
|||
import java.net.*;
|
||||
import java.security.*;
|
||||
import java.security.cert.Certificate;
|
||||
import java.security.cert.CertificateFactory;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.util.*;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import sun.security.pkcs.EncryptedPrivateKeyInfo;
|
||||
import sun.security.util.PolicyUtil;
|
||||
|
||||
/**
|
||||
|
@ -798,11 +796,8 @@ abstract class DomainKeyStore extends KeyStoreSpi {
|
|||
parser.read(configurationReader);
|
||||
domains = parser.getDomainEntries();
|
||||
|
||||
} catch (MalformedURLException mue) {
|
||||
throw new IOException(mue);
|
||||
|
||||
} catch (PolicyParser.ParsingException pe) {
|
||||
throw new IOException(pe);
|
||||
} catch (MalformedURLException | PolicyParser.ParsingException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
||||
for (PolicyParser.DomainEntry domain : domains) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue