8279066: entries.remove(entry) is useless in PKCS12KeyStore

Reviewed-by: mullan
This commit is contained in:
Weijun Wang 2021-12-21 22:13:04 +00:00
parent 803cb8a768
commit fb623f1d2e

View File

@ -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);
}
}
}