Skip to content

Commit a32d0b1

Browse files
Warsbclozel
authored andcommitted
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>
1 parent d6fbe25 commit a32d0b1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
6666
* through {@link #register} calls and then manually {@linkplain #refresh refreshed}.
6767
*/
6868
public AnnotationConfigApplicationContext() {
69-
StartupStep createAnnotatedBeanDefReader = getApplicationStartup().start("spring.context.annotated-bean-reader.create");
7069
this.reader = new AnnotatedBeanDefinitionReader(this);
71-
createAnnotatedBeanDefReader.end();
7270
this.scanner = new ClassPathBeanDefinitionScanner(this);
7371
}
7472

0 commit comments

Comments
 (0)