RFR: 8282662: Use List/Set.of() factory methods to reduce memory consumption [v2]
Сергей Цыпанов
duke at openjdk.java.net
Wed Mar 9 09:02:00 UTC 2022
On Tue, 8 Mar 2022 14:28:00 GMT, liach <duke at openjdk.java.net> wrote:
>> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8282662: Revert dubious changes
>
> src/java.base/share/classes/sun/reflect/annotation/AnnotationSupport.java line 79:
>
>> 77: containerBeforeContainee(annotations, annoClass);
>> 78:
>> 79: result.addAll((indirectFirst ? 0 : 1), List.of(indirect));
>
> This `indirect` is most likely to be of size > 2
I've reverted this along with the rest of dubious changes
-------------
PR: https://git.openjdk.java.net/jdk/pull/7729
More information about the security-dev
mailing list