[15] RFR JDK-8242151 Improve OID mapping and reuse among JDK security providers for aliases registration
Valerie Peng
valerie.peng at oracle.com
Mon Jun 8 20:52:20 UTC 2020
Hi Audrey,
Thanks for the comment, we can apply your suggestion in the next update
of KnownOIDs class.
Valerie
On 6/6/2020 9:03 AM, Andrey Turbanov wrote:
>> 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