Converts value of single parameter

This commit is contained in:
Lukasz Lenart
2016-07-31 13:39:37 +02:00
parent 0b24437ed6
commit 8b559afc76
@@ -61,11 +61,14 @@ public class CollectionConverter extends DefaultTypeConverter {
}
} else {
result = createCollection(toType, memberType, -1);
result.add(value);
TypeConverter converter = getTypeConverter(context);
Object convertedValue = converter.convertValue(context, target, member, propertyName, value, memberType);
if (!TypeConverter.NO_CONVERSION_POSSIBLE.equals(convertedValue)) {
result.add(convertedValue);
}
}
return result;
}
private Collection createCollection(Class toType, Class memberType, int size) {