Skip to content

Commit f32bfcb

Browse files
author
ian.lol
committed
Add Bootstrapper initialize method to fix typo
1 parent 9c24ca0 commit f32bfcb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/Bootstrapper.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ public interface Bootstrapper {
3131
* Initialize the given {@link BootstrapRegistry} with any required registrations.
3232
* @param registry the registry to initialize
3333
*/
34+
default void initialize(BootstrapRegistry registry) {
35+
}
36+
37+
/**
38+
* Initialize the given {@link BootstrapRegistry} with any required registrations.
39+
* @param registry the registry to initialize
40+
* @deprecated since 2.4.4 in favor of {@link Bootstrapper#initialize(BootstrapRegistry)}
41+
*/
42+
@Deprecated
3443
void intitialize(BootstrapRegistry registry);
3544

3645
}

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public ConfigurableApplicationContext run(String... args) {
349349

350350
private DefaultBootstrapContext createBootstrapContext() {
351351
DefaultBootstrapContext bootstrapContext = new DefaultBootstrapContext();
352-
this.bootstrappers.forEach((initializer) -> initializer.intitialize(bootstrapContext));
352+
this.bootstrappers.forEach((initializer) -> initializer.initialize(bootstrapContext));
353353
return bootstrapContext;
354354
}
355355

0 commit comments

Comments
 (0)