Trim profile names in array (#469)
* Trim profile names in array. Fixes #460 * Use tokenizeToStringArray
This commit is contained in:
@@ -222,7 +222,7 @@ public class PropertySourceBootstrapConfiguration implements
|
||||
|
||||
private String[] getProfilesForValue(Object property) {
|
||||
final String value = (property == null ? null : property.toString());
|
||||
return StringUtils.commaDelimitedListToStringArray(value);
|
||||
return property == null ? new String[0] : StringUtils.tokenizeToStringArray(value, ",");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user