Skip to content

Commit 4b87e21

Browse files
committed
Move class ContextRefresher.Empty down to LegacyContextRefresher
It's only used by LegacyContextRefresher. Signed-off-by: Yanming Zhou <[email protected]>
1 parent 7e1cbf8 commit 4b87e21

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@
3131
import org.springframework.cloud.context.environment.EnvironmentChangeEvent;
3232
import org.springframework.cloud.context.scope.refresh.RefreshScope;
3333
import org.springframework.context.ConfigurableApplicationContext;
34-
import org.springframework.context.annotation.Configuration;
3534
import org.springframework.core.env.CommandLinePropertySource;
3635
import org.springframework.core.env.CompositePropertySource;
3736
import org.springframework.core.env.ConfigurableEnvironment;
@@ -197,9 +196,4 @@ else if (parent instanceof EnumerablePropertySource) {
197196
}
198197
}
199198

200-
@Configuration(proxyBeanMethods = false)
201-
protected static class Empty {
202-
203-
}
204-
205199
}

spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
2828
import org.springframework.cloud.bootstrap.BootstrapConfigFileApplicationListener;
2929
import org.springframework.cloud.context.scope.refresh.RefreshScope;
3030
import org.springframework.context.ConfigurableApplicationContext;
31+
import org.springframework.context.annotation.Configuration;
3132
import org.springframework.core.env.MapPropertySource;
3233
import org.springframework.core.env.MutablePropertySources;
3334
import org.springframework.core.env.PropertySource;
@@ -127,4 +128,9 @@ protected void updateEnvironment() {
127128
return capture;
128129
}
129130

131+
@Configuration(proxyBeanMethods = false)
132+
protected static class Empty {
133+
134+
}
135+
130136
}

0 commit comments

Comments
 (0)