Skip to content

Commit 72adbec

Browse files
committed
Merge pull request #38241 from audtjddld
* pr/38241: Fix typo Closes gh-38241
2 parents b01235e + 8932de0 commit 72adbec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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
@@ -298,7 +298,7 @@ private Optional<Class<?>> findMainClass(Stream<StackFrame> stack) {
298298
*/
299299
public ConfigurableApplicationContext run(String... args) {
300300
if (this.registerShutdownHook) {
301-
SpringApplication.shutdownHook.enableShutdowHookAddition();
301+
SpringApplication.shutdownHook.enableShutdownHookAddition();
302302
}
303303
long startTime = System.nanoTime();
304304
DefaultBootstrapContext bootstrapContext = createBootstrapContext();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SpringApplicationShutdownHandlers getHandlers() {
7070
return this.handlers;
7171
}
7272

73-
void enableShutdowHookAddition() {
73+
void enableShutdownHookAddition() {
7474
this.shutdownHookAdditionEnabled = true;
7575
}
7676

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationShutdownHookTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SpringApplicationShutdownHookTests {
5151
@Test
5252
void shutdownHookIsNotAddedUntilContextIsRegistered() {
5353
TestSpringApplicationShutdownHook shutdownHook = new TestSpringApplicationShutdownHook();
54-
shutdownHook.enableShutdowHookAddition();
54+
shutdownHook.enableShutdownHookAddition();
5555
assertThat(shutdownHook.isRuntimeShutdownHookAdded()).isFalse();
5656
ConfigurableApplicationContext context = new GenericApplicationContext();
5757
shutdownHook.registerApplicationContext(context);
@@ -61,7 +61,7 @@ void shutdownHookIsNotAddedUntilContextIsRegistered() {
6161
@Test
6262
void shutdownHookIsNotAddedUntilHandlerIsRegistered() {
6363
TestSpringApplicationShutdownHook shutdownHook = new TestSpringApplicationShutdownHook();
64-
shutdownHook.enableShutdowHookAddition();
64+
shutdownHook.enableShutdownHookAddition();
6565
assertThat(shutdownHook.isRuntimeShutdownHookAdded()).isFalse();
6666
shutdownHook.getHandlers().add(() -> {
6767
});
@@ -74,7 +74,7 @@ void shutdownHookIsNotAddedUntilAdditionIsEnabled() {
7474
shutdownHook.getHandlers().add(() -> {
7575
});
7676
assertThat(shutdownHook.isRuntimeShutdownHookAdded()).isFalse();
77-
shutdownHook.enableShutdowHookAddition();
77+
shutdownHook.enableShutdownHookAddition();
7878
shutdownHook.getHandlers().add(() -> {
7979
});
8080
assertThat(shutdownHook.isRuntimeShutdownHookAdded()).isTrue();

0 commit comments

Comments
 (0)