mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
+2
-2
@@ -371,7 +371,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
|
||||
int startupPhase = getPhase(bean);
|
||||
phases.computeIfAbsent(
|
||||
startupPhase, phase -> new LifecycleGroup(phase, lifecycleBeans, autoStartupOnly, false))
|
||||
.add(beanName, bean);
|
||||
.add(beanName, bean);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -441,7 +441,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
|
||||
int shutdownPhase = getPhase(bean);
|
||||
phases.computeIfAbsent(
|
||||
shutdownPhase, phase -> new LifecycleGroup(phase, lifecycleBeans, false, pauseableOnly))
|
||||
.add(beanName, bean);
|
||||
.add(beanName, bean);
|
||||
});
|
||||
|
||||
if (!phases.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user