mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8295953: Use enhanced-for cycle instead of Enumeration in sun.security
Reviewed-by: weijun
This commit is contained in:
parent
ba303c048e
commit
3baad069a6
6 changed files with 14 additions and 32 deletions
|
@ -4177,9 +4177,7 @@ public final class Main {
|
|||
// Try out each certificate in the vector, until we find one
|
||||
// whose public key verifies the signature of the certificate
|
||||
// in question.
|
||||
for (Enumeration<Pair<String,X509Certificate>> issuerCerts = vec.elements();
|
||||
issuerCerts.hasMoreElements(); ) {
|
||||
Pair<String,X509Certificate> issuerCert = issuerCerts.nextElement();
|
||||
for (Pair<String, X509Certificate> issuerCert : vec) {
|
||||
PublicKey issuerPubKey = issuerCert.snd.getPublicKey();
|
||||
try {
|
||||
certToVerify.snd.verify(issuerPubKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue