Commit bd4dc1ef authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '2.1.x'

Closes gh-18669
parents 03f57918 91f4300f
...@@ -72,7 +72,7 @@ public class ContextIdApplicationContextInitializer ...@@ -72,7 +72,7 @@ public class ContextIdApplicationContextInitializer
/** /**
* The ID of a context. * The ID of a context.
*/ */
class ContextId { static class ContextId {
private final AtomicLong children = new AtomicLong(0); private final AtomicLong children = new AtomicLong(0);
......
...@@ -259,7 +259,7 @@ public class ConfigFileApplicationListener implements EnvironmentPostProcessor, ...@@ -259,7 +259,7 @@ public class ConfigFileApplicationListener implements EnvironmentPostProcessor,
* {@link BeanFactoryPostProcessor} to re-order our property sources below any * {@link BeanFactoryPostProcessor} to re-order our property sources below any
* {@code @PropertySource} items added by the {@link ConfigurationClassPostProcessor}. * {@code @PropertySource} items added by the {@link ConfigurationClassPostProcessor}.
*/ */
private class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered { private static class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {
private ConfigurableApplicationContext context; private ConfigurableApplicationContext context;
......
...@@ -121,7 +121,7 @@ public class InfoProperties implements Iterable<InfoProperties.Entry> { ...@@ -121,7 +121,7 @@ public class InfoProperties implements Iterable<InfoProperties.Entry> {
/** /**
* Property entry. * Property entry.
*/ */
public final class Entry { public static final class Entry {
private final String key; private final String key;
......
...@@ -168,7 +168,7 @@ public class JavaLoggingSystem extends AbstractLoggingSystem { ...@@ -168,7 +168,7 @@ public class JavaLoggingSystem extends AbstractLoggingSystem {
this.configuredLoggers.clear(); this.configuredLoggers.clear();
} }
private final class ShutdownHandler implements Runnable { private static final class ShutdownHandler implements Runnable {
@Override @Override
public void run() { public void run() {
......
...@@ -283,12 +283,10 @@ public final class LambdaSafe { ...@@ -283,12 +283,10 @@ public final class LambdaSafe {
* @param invoker the invoker used to invoke the callback * @param invoker the invoker used to invoke the callback
*/ */
public void invoke(Consumer<C> invoker) { public void invoke(Consumer<C> invoker) {
this.callbackInstances.forEach((callbackInstance) -> { this.callbackInstances.forEach((callbackInstance) -> invoke(callbackInstance, () -> {
invoke(callbackInstance, () -> { invoker.accept(callbackInstance);
invoker.accept(callbackInstance); return null;
return null; }));
});
});
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment