mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 22:59:03 +00:00
Consistently supply List to MergedAnnotations.of()
This commit is contained in:
+3
-1
@@ -16,7 +16,9 @@
|
||||
|
||||
package org.springframework.core.type.classreading;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
@@ -57,7 +59,7 @@ final class SimpleAnnotationMetadataReadingVisitor extends ClassVisitor {
|
||||
|
||||
private final Set<String> memberClassNames = new LinkedHashSet<>(4);
|
||||
|
||||
private final Set<MergedAnnotation<?>> annotations = new LinkedHashSet<>(4);
|
||||
private final List<MergedAnnotation<?>> annotations = new ArrayList<>(4);
|
||||
|
||||
private final Set<MethodMetadata> declaredMethods = new LinkedHashSet<>(4);
|
||||
|
||||
|
||||
+1
-1
@@ -255,7 +255,7 @@ final class ClassFileAnnotationMetadata implements AnnotationMetadata {
|
||||
|
||||
private Set<MethodMetadata> declaredMethods = new LinkedHashSet<>(4);
|
||||
|
||||
private MergedAnnotations mergedAnnotations = MergedAnnotations.of(Collections.emptySet());
|
||||
private MergedAnnotations mergedAnnotations = MergedAnnotations.of(Collections.emptyList());
|
||||
|
||||
public Builder(ClassLoader classLoader) {
|
||||
this.classLoader = classLoader;
|
||||
|
||||
Reference in New Issue
Block a user