Remove ComponentScan duplicate condition

Closes gh-27077
This commit is contained in:
Stéphane Nicoll 2024-02-21 10:09:31 +01:00
parent 22b41c33ba
commit 871f705bca
1 changed files with 1 additions and 2 deletions

View File

@ -313,8 +313,7 @@ class ConfigurationClassParser {
ComponentScan.class, ComponentScans.class, MergedAnnotation::isMetaPresent);
}
if (!componentScans.isEmpty() &&
!this.conditionEvaluator.shouldSkip(sourceClass.getMetadata(), ConfigurationPhase.REGISTER_BEAN)) {
if (!componentScans.isEmpty()) {
for (AnnotationAttributes componentScan : componentScans) {
// The config class is annotated with @ComponentScan -> perform the scan immediately
Set<BeanDefinitionHolder> scannedBeanDefinitions =