[15] RFR JDK-8242151 Improve OID mapping and reuse among JDK security providers for aliases registration
Andrey Turbanov
turbanoff at gmail.com
Sat Jun 6 16:03:01 UTC 2020
>List.of(KnownOIDs.values()).forEach(o -> {
> register(o);
>});
I wonder if this 'forEach' is better than plain old 'for' in some ways?
```
for (KnownOIDs oid : KnownOIDs.values()) {
register(oid);
}
```
I think a variant with plain 'for' generates a bit less garbage.
Andrey Turbanov
More information about the security-dev
mailing list