Skip to content

Commit 9411fc2

Browse files
committed
Merge branch '2.5.x' into 2.6.x
2 parents 59ffe28 + 57009d5 commit 9411fc2

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -95,12 +95,8 @@ void addRuntimeShutdownHook() {
9595

9696
void deregisterFailedApplicationContext(ConfigurableApplicationContext applicationContext) {
9797
synchronized (SpringApplicationShutdownHook.class) {
98-
if (!applicationContext.isActive()) {
99-
SpringApplicationShutdownHook.this.contexts.remove(applicationContext);
100-
}
101-
else {
102-
throw new IllegalStateException("Cannot unregister active application context");
103-
}
98+
Assert.state(!applicationContext.isActive(), "Cannot unregister active application context");
99+
SpringApplicationShutdownHook.this.contexts.remove(applicationContext);
104100
}
105101
}
106102

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DefaultValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)