-
Type:
Improvement
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.1.3 (Lovelace SR3)
-
Fix Version/s: 2.0.13 (Kay SR13), 2.1.4 (Lovelace SR4), 2.2 M2 (Moore)
-
Component/s: Core
-
Labels:None
-
Pull Request URL:
There is a wrong assert in the class org.springframework.data.auditing.config.AuditingBeanDefinitionRegistrarSupport
Instead of checking for the nullity of both of the parameters, the same parameter (annotationMetadata) is asserted twice:
@Override public void registerBeanDefinitions(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry registry) { Assert.notNull(annotationMetadata, "AnnotationMetadata must not be null!"); Assert.notNull(annotationMetadata, "BeanDefinitionRegistry must not be null!");