Skip to content

Commit 871f705

Browse files
committed
Remove ComponentScan duplicate condition
Closes gh-27077
1 parent 22b41c3 commit 871f705

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ protected final SourceClass doProcessConfigurationClass(
313313
ComponentScan.class, ComponentScans.class, MergedAnnotation::isMetaPresent);
314314
}
315315

316-
if (!componentScans.isEmpty() &&
317-
!this.conditionEvaluator.shouldSkip(sourceClass.getMetadata(), ConfigurationPhase.REGISTER_BEAN)) {
316+
if (!componentScans.isEmpty()) {
318317
for (AnnotationAttributes componentScan : componentScans) {
319318
// The config class is annotated with @ComponentScan -> perform the scan immediately
320319
Set<BeanDefinitionHolder> scannedBeanDefinitions =

0 commit comments

Comments
 (0)