Browse Source

Polishing

pull/35588/head
Sam Brannen 4 months ago
parent
commit
6bc3ce4829
  1. 4
      spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

4
spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

@ -371,7 +371,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor @@ -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 @@ -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()) {

Loading…
Cancel
Save