Skip to content

Commit bd4dc1e

Browse files
committed
Merge branch '2.1.x'
Closes gh-18669
2 parents 03f5791 + 91f4300 commit bd4dc1e

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private String getApplicationId(ConfigurableEnvironment environment) {
7272
/**
7373
* The ID of a context.
7474
*/
75-
class ContextId {
75+
static class ContextId {
7676

7777
private final AtomicLong children = new AtomicLong(0);
7878

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public void setSearchNames(String names) {
259259
* {@link BeanFactoryPostProcessor} to re-order our property sources below any
260260
* {@code @PropertySource} items added by the {@link ConfigurationClassPostProcessor}.
261261
*/
262-
private class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {
262+
private static class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {
263263

264264
private ConfigurableApplicationContext context;
265265

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/info/InfoProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void remove() {
121121
/**
122122
* Property entry.
123123
*/
124-
public final class Entry {
124+
public static final class Entry {
125125

126126
private final String key;
127127

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/java/JavaLoggingSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void cleanUp() {
168168
this.configuredLoggers.clear();
169169
}
170170

171-
private final class ShutdownHandler implements Runnable {
171+
private static final class ShutdownHandler implements Runnable {
172172

173173
@Override
174174
public void run() {

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,10 @@ private Callbacks(Class<C> callbackType, Collection<? extends C> callbackInstanc
283283
* @param invoker the invoker used to invoke the callback
284284
*/
285285
public void invoke(Consumer<C> invoker) {
286-
this.callbackInstances.forEach((callbackInstance) -> {
287-
invoke(callbackInstance, () -> {
288-
invoker.accept(callbackInstance);
289-
return null;
290-
});
291-
});
286+
this.callbackInstances.forEach((callbackInstance) -> invoke(callbackInstance, () -> {
287+
invoker.accept(callbackInstance);
288+
return null;
289+
}));
292290
}
293291

294292
/**

0 commit comments

Comments
 (0)