spring-framework/spring-core
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
..
kotlin-coroutines Upgrade to Coroutines 1.4.0-M1 and use awaitSingle() 2020-10-13 15:26:39 +02:00
src Do not create intermediate list in MergedAnnotationCollectors.toAnnotationSet() 2020-11-04 14:19:58 +01:00
spring-core.gradle Consistent dependency declaration order 2020-10-16 15:19:25 +02:00