mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Formatting
This commit is contained in:
parent
d6165d97dd
commit
468db03aef
@ -75,8 +75,7 @@ class OnWebApplicationCondition extends SpringBootCondition {
|
||||
}
|
||||
|
||||
if (context.getResourceLoader() instanceof WebApplicationContext) {
|
||||
return ConditionOutcome
|
||||
.match("found web application WebApplicationContext");
|
||||
return ConditionOutcome.match("found web application WebApplicationContext");
|
||||
}
|
||||
|
||||
return ConditionOutcome.noMatch("not a web application");
|
||||
|
@ -51,7 +51,7 @@ public class PropertySourcesPropertyValues implements PropertyValues {
|
||||
private static final Collection<String> NON_ENUMERABLE_ENUMERABLES = Arrays.asList(
|
||||
StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME,
|
||||
StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);
|
||||
|
||||
|
||||
/**
|
||||
* Create a new PropertyValues from the given PropertySources
|
||||
* @param propertySources a PropertySources instance
|
||||
@ -107,7 +107,8 @@ public class PropertySourcesPropertyValues implements PropertyValues {
|
||||
PropertySourcesPropertyResolver resolver, String[] includes, String[] exacts) {
|
||||
if (source.getPropertyNames().length > 0) {
|
||||
for (String propertyName : source.getPropertyNames()) {
|
||||
if (PropertySourcesPropertyValues.NON_ENUMERABLE_ENUMERABLES.contains(source.getName())
|
||||
if (PropertySourcesPropertyValues.NON_ENUMERABLE_ENUMERABLES
|
||||
.contains(source.getName())
|
||||
&& !PatternMatchUtils.simpleMatch(includes, propertyName)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user