Skip to content

Commit f44e989

Browse files
committed
refactor: Extract bean definition skipping logic into a separate method
Signed-off-by: KNU-K <[email protected]>
1 parent 37bbf28 commit f44e989

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -711,16 +711,15 @@ private void processManualSingletons(List<String> result, ResolvableType type, b
711711
}
712712
}
713713

714-
private boolean shouldSkipBeanDefinition(
715-
boolean isAbstract, boolean allowEagerInit,
714+
private boolean shouldSkipBeanDefinition(boolean isAbstract, boolean allowEagerInit,
716715
boolean hasBeanClass, boolean isLazyInit, @Nullable String factoryBeanName) {
717716

718717
if (isAbstract) {
719718
return true;
720719
}
721720
if (!allowEagerInit) {
722-
boolean needsEagerInit = (!hasBeanClass && isLazyInit && !isAllowEagerClassLoading())
723-
|| requiresEagerInitForType(factoryBeanName);
721+
boolean needsEagerInit = (!hasBeanClass && isLazyInit && !isAllowEagerClassLoading()) ||
722+
requiresEagerInitForType(factoryBeanName);
724723
if (needsEagerInit) {
725724
return true;
726725
}

0 commit comments

Comments
 (0)