mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8279066: entries.remove(entry) is useless in PKCS12KeyStore
Reviewed-by: mullan
This commit is contained in:
parent
803cb8a768
commit
fb623f1d2e
1 changed files with 0 additions and 5 deletions
|
@ -2265,11 +2265,6 @@ public final class PKCS12KeyStore extends KeyStoreSpi {
|
|||
/* Update existing KeyEntry in entries table */
|
||||
if (chain.size() > 0) {
|
||||
entry.chain = chain.toArray(new Certificate[chain.size()]);
|
||||
} else {
|
||||
// Remove private key entries where there is no associated
|
||||
// certs. Most likely the keystore is loaded with a null
|
||||
// password.
|
||||
entries.remove(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue