spring-framework/spring-core/src
Sam Brannen 0a0299693b Do not create intermediate list in MergedAnnotationCollectors.toAnnotationSet()
Prior to this commit, MergedAnnotationCollectors.toAnnotationSet()
created an intermediate ArrayList for storing the results prior to
creating a LinkedHashSet in the finishing step.

Since the creation of the intermediate list is unnecessary, this commit
simplifies the implementation of toAnnotationSet() by using the
Collector.of() factory method that does not accept a `finisher` argument.
The resulting Collector internally uses a `castingIdentity()` function
as the `finisher`.

Closes gh-26031
2020-11-04 14:19:58 +01:00
..
jmh/java/org/springframework Fix checkstyle violations 2020-10-23 08:22:23 +01:00
main Do not create intermediate list in MergedAnnotationCollectors.toAnnotationSet() 2020-11-04 14:19:58 +01:00
test Merge branch '5.2.x' 2020-10-26 15:05:35 +01:00
testFixtures/java/org/springframework/core/testfixture Remove TestGroup.PERFORMANCE 2020-09-25 13:43:38 +02:00