mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8274237: Replace 'for' cycles with iterator with enhanced-for in java.base
Reviewed-by: dfuchs, weijun
This commit is contained in:
parent
0c050be64b
commit
baafa6059e
4 changed files with 18 additions and 32 deletions
|
@ -364,8 +364,7 @@ public class X509CRLSelector implements CRLSelector {
|
|||
private static HashSet<X500Principal> parseIssuerNames(Collection<Object> names)
|
||||
throws IOException {
|
||||
HashSet<X500Principal> x500Principals = new HashSet<>();
|
||||
for (Iterator<Object> t = names.iterator(); t.hasNext(); ) {
|
||||
Object nameObject = t.next();
|
||||
for (Object nameObject : names) {
|
||||
if (nameObject instanceof String) {
|
||||
x500Principals.add(new X500Name((String)nameObject).asX500Principal());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue