See gh-18665
This commit is contained in:
xiaokeliu666 2019-10-20 02:15:37 -04:00 committed by Stephane Nicoll
parent 29e288f6c9
commit 57c64eb3bc
5 changed files with 8 additions and 10 deletions

View File

@ -72,7 +72,7 @@ public class ContextIdApplicationContextInitializer
/**
* The ID of a context.
*/
class ContextId {
static class ContextId {
private final AtomicLong children = new AtomicLong(0);

View File

@ -248,7 +248,7 @@ public class ConfigFileApplicationListener implements EnvironmentPostProcessor,
* {@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;

View File

@ -121,7 +121,7 @@ public class InfoProperties implements Iterable<InfoProperties.Entry> {
/**
* Property entry.
*/
public final class Entry {
public static final class Entry {
private final String key;

View File

@ -168,7 +168,7 @@ public class JavaLoggingSystem extends AbstractLoggingSystem {
this.configuredLoggers.clear();
}
private final class ShutdownHandler implements Runnable {
private static final class ShutdownHandler implements Runnable {
@Override
public void run() {

View File

@ -279,12 +279,10 @@ public final class LambdaSafe {
* @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;
}));
}
/**