Ensure spring.main.sources is not used in refresh cycle
When the RefreshEndpoint makes a new Environment it creates a new
ApplicationContext with (hopefully) empty sources. If the user has
set spring.main.sources it won't be empty, so we should take care
to mask it off in the process.
Fixes gh-79
@ -88,6 +91,9 @@ public class RefreshEndpoint extends AbstractEndpoint<Collection<String>> {
@@ -88,6 +91,9 @@ public class RefreshEndpoint extends AbstractEndpoint<Collection<String>> {
@ -144,6 +150,11 @@ public class RefreshEndpoint extends AbstractEndpoint<Collection<String>> {
@@ -144,6 +150,11 @@ public class RefreshEndpoint extends AbstractEndpoint<Collection<String>> {