|
|
@ -32,7 +32,6 @@ import org.springframework.boot.context.properties.source.IterableConfigurationP
|
|
|
|
import org.springframework.core.ResolvableType;
|
|
|
|
import org.springframework.core.ResolvableType;
|
|
|
|
import org.springframework.util.LinkedMultiValueMap;
|
|
|
|
import org.springframework.util.LinkedMultiValueMap;
|
|
|
|
import org.springframework.util.MultiValueMap;
|
|
|
|
import org.springframework.util.MultiValueMap;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Base class for {@link AggregateBinder AggregateBinders} that read a sequential run of
|
|
|
|
* Base class for {@link AggregateBinder AggregateBinders} that read a sequential run of
|
|
|
@ -90,7 +89,7 @@ abstract class IndexedElementsBinder<T> extends AggregateBinder<T> {
|
|
|
|
|
|
|
|
|
|
|
|
private void bindValue(Bindable<?> target, Collection<Object> collection, ResolvableType aggregateType,
|
|
|
|
private void bindValue(Bindable<?> target, Collection<Object> collection, ResolvableType aggregateType,
|
|
|
|
ResolvableType elementType, Object value) {
|
|
|
|
ResolvableType elementType, Object value) {
|
|
|
|
if (value instanceof String && !StringUtils.hasText((String) value)) {
|
|
|
|
if (value == null || value instanceof CharSequence && ((CharSequence) value).length() == 0) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Object aggregate = convert(value, aggregateType, target.getAnnotations());
|
|
|
|
Object aggregate = convert(value, aggregateType, target.getAnnotations());
|
|
|
|