Polish
Closes gh-13616
This commit is contained in:
committed by
Stephane Nicoll
parent
809e30506f
commit
ab6adc8265
@@ -174,7 +174,7 @@ class SpringIterableConfigurationPropertySource extends SpringConfigurationPrope
|
||||
|
||||
private static final class CacheKey {
|
||||
|
||||
private Object key;
|
||||
private final Object key;
|
||||
|
||||
private CacheKey(Object key) {
|
||||
this.key = key;
|
||||
|
||||
@@ -67,9 +67,12 @@ class SpringProfileAction extends Action implements InPlayListener {
|
||||
}
|
||||
|
||||
private boolean acceptsProfiles(InterpretationContext ic, Attributes attributes) {
|
||||
if (this.environment == null) {
|
||||
return false;
|
||||
}
|
||||
String[] profileNames = StringUtils.trimArrayElements(StringUtils
|
||||
.commaDelimitedListToStringArray(attributes.getValue(NAME_ATTRIBUTE)));
|
||||
if (this.environment == null || profileNames.length == 0) {
|
||||
if (profileNames.length == 0) {
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < profileNames.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user