parent
7fcbc869a6
commit
02f2d94f57
|
|
@ -342,9 +342,9 @@ public class SpringFactoriesLoader {
|
|||
Properties properties = PropertiesLoaderUtils.loadProperties(resource);
|
||||
properties.forEach((name, value) -> {
|
||||
String[] factoryImplementationNames = StringUtils.commaDelimitedListToStringArray((String) value);
|
||||
List<String> implementations = result.computeIfAbsent(((String) name).trim(), key -> new ArrayList<>(factoryImplementationNames.length));
|
||||
Arrays.stream(factoryImplementationNames)
|
||||
.map(String::trim).forEach(implementations::add);
|
||||
List<String> implementations = result.computeIfAbsent(((String) name).trim(),
|
||||
key -> new ArrayList<>(factoryImplementationNames.length));
|
||||
Arrays.stream(factoryImplementationNames).map(String::trim).forEach(implementations::add);
|
||||
});
|
||||
}
|
||||
result.replaceAll(SpringFactoriesLoader::toDistinctUnmodifiableList);
|
||||
|
|
|
|||
Loading…
Reference in New Issue