|
30 | 30 | import java.util.Optional;
|
31 | 31 | import java.util.Set;
|
32 | 32 | import java.util.TreeSet;
|
33 |
| -import java.util.concurrent.ConcurrentHashMap; |
34 | 33 | import java.util.stream.Collectors;
|
35 | 34 |
|
36 | 35 | import org.springframework.core.annotation.AnnotatedElementUtils;
|
37 | 36 | import org.springframework.data.annotation.TypeAlias;
|
38 |
| -import org.springframework.data.mapping.*; |
| 37 | +import org.springframework.data.mapping.Alias; |
| 38 | +import org.springframework.data.mapping.Association; |
| 39 | +import org.springframework.data.mapping.AssociationHandler; |
| 40 | +import org.springframework.data.mapping.IdentifierAccessor; |
| 41 | +import org.springframework.data.mapping.MappingException; |
| 42 | +import org.springframework.data.mapping.PersistentEntity; |
| 43 | +import org.springframework.data.mapping.PersistentProperty; |
| 44 | +import org.springframework.data.mapping.PersistentPropertyAccessor; |
| 45 | +import org.springframework.data.mapping.PreferredConstructor; |
| 46 | +import org.springframework.data.mapping.PropertyHandler; |
| 47 | +import org.springframework.data.mapping.SimpleAssociationHandler; |
| 48 | +import org.springframework.data.mapping.SimplePropertyHandler; |
| 49 | +import org.springframework.data.mapping.TargetAwareIdentifierAccessor; |
39 | 50 | import org.springframework.data.util.Lazy;
|
40 | 51 | import org.springframework.data.util.TypeInformation;
|
41 | 52 | import org.springframework.lang.Nullable;
|
@@ -106,8 +117,7 @@ public BasicPersistentEntity(TypeInformation<T> information, @Nullable Comparato
|
106 | 117 |
|
107 | 118 | this.propertyCache = new ConcurrentReferenceHashMap<>();
|
108 | 119 | this.annotationCache = new ConcurrentReferenceHashMap<>();
|
109 |
| - this.propertyAnnotationCache = CollectionUtils |
110 |
| - .toMultiValueMap(new ConcurrentReferenceHashMap<Class<? extends Annotation>, List<P>>()); |
| 120 | + this.propertyAnnotationCache = CollectionUtils.toMultiValueMap(new ConcurrentReferenceHashMap<>()); |
111 | 121 | this.propertyAccessorFactory = BeanWrapperPropertyAccessorFactory.INSTANCE;
|
112 | 122 | this.typeAlias = Lazy.of(() -> getAliasFromAnnotation(getType()));
|
113 | 123 | }
|
|
0 commit comments