Skip to content
Closed

Polish #18665

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private String getApplicationId(ConfigurableEnvironment environment) {
/**
* The ID of a context.
*/
class ContextId {
static class ContextId {

private final AtomicLong children = new AtomicLong(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void setSearchNames(String names) {
* {@link BeanFactoryPostProcessor} to re-order our property sources below any
* {@code @PropertySource} items added by the {@link ConfigurationClassPostProcessor}.
*/
private class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {
private static class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {

private ConfigurableApplicationContext context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void remove() {
/**
* Property entry.
*/
public final class Entry {
public static final class Entry {

private final String key;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void cleanUp() {
this.configuredLoggers.clear();
}

private final class ShutdownHandler implements Runnable {
private static final class ShutdownHandler implements Runnable {

@Override
public void run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,10 @@ private Callbacks(Class<C> callbackType, Collection<? extends C> callbackInstanc
* @param invoker the invoker used to invoke the callback
*/
public void invoke(Consumer<C> invoker) {
this.callbackInstances.forEach((callbackInstance) -> {
invoke(callbackInstance, () -> {
invoker.accept(callbackInstance);
return null;
});
});
this.callbackInstances.forEach((callbackInstance) -> invoke(callbackInstance, () -> {
invoker.accept(callbackInstance);
return null;
}));
}

/**
Expand Down