Skip to content

Commit

Permalink
Inner class may be static
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokeliu666 committed Oct 20, 2019
1 parent 03f5791 commit 5289c33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 5289c33

Please sign in to comment.