in archaius2-commons-configuration/src/main/java/com/netflix/archaius/commons/CommonsToConfig.java [60:80]
public <T> List<T> getList(String key, Class<T> type) {
List<?> value = config.getList(key);
if (value == null) {
return notFound(key);
}
List<T> result = new ArrayList<>();
for (Object part : value) {
if (type.isInstance(part)) {
//noinspection unchecked
result.add((T) part);
} else if (part instanceof String) {
//noinspection deprecation
result.add(getDecoder().decode(type, (String) part));
} else {
throw new UnsupportedOperationException(
"Property values other than " + type.getCanonicalName() +" or String not supported");
}
}
return result;
}