Browse Source

Remove unused application startup call

AbstractApplicationContext.applicationStartup can only be injected after the instance construction. This metrics point has no practical effect at present and can be removed safely.

Closes gh-35570
Signed-off-by: Wars <wars@wars.cat>
pull/35573/head
Wars 4 months ago committed by Brian Clozel
parent
commit
a32d0b17d1
  1. 2
      spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java

2
spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java

@ -66,9 +66,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex @@ -66,9 +66,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
* through {@link #register} calls and then manually {@linkplain #refresh refreshed}.
*/
public AnnotationConfigApplicationContext() {
StartupStep createAnnotatedBeanDefReader = getApplicationStartup().start("spring.context.annotated-bean-reader.create");
this.reader = new AnnotatedBeanDefinitionReader(this);
createAnnotatedBeanDefReader.end();
this.scanner = new ClassPathBeanDefinitionScanner(this);
}

Loading…
Cancel
Save