Skip to content

Commit dd997cd

Browse files
committed
Remove sysout from test
1 parent a305820 commit dd997cd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/IndexedElementsBinder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.core.ResolvableType;
3333
import org.springframework.util.LinkedMultiValueMap;
3434
import org.springframework.util.MultiValueMap;
35-
import org.springframework.util.StringUtils;
3635

3736
/**
3837
* Base class for {@link AggregateBinder AggregateBinders} that read a sequential run of
@@ -90,7 +89,7 @@ private void bindIndexed(ConfigurationPropertySource source, ConfigurationProper
9089

9190
private void bindValue(Bindable<?> target, Collection<Object> collection, ResolvableType aggregateType,
9291
ResolvableType elementType, Object value) {
93-
if (value instanceof String && !StringUtils.hasText((String) value)) {
92+
if (value == null || value instanceof CharSequence && ((CharSequence) value).length() == 0) {
9493
return;
9594
}
9695
Object aggregate = convert(value, aggregateType, target.getAnnotations());

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/CharSequenceToObjectConverterTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ void convertWhenCanConvertViaToString(ConversionService conversionService) {
4040
@ConversionServiceTest
4141
void convertWhenCanConvertDirectlySkipsStringConversion(ConversionService conversionService) {
4242
assertThat(conversionService.convert(new String("1"), Long.class)).isEqualTo(1);
43-
System.out.println(conversionService.getClass());
4443
if (!ConversionServiceArguments.isApplicationConversionService(conversionService)) {
4544
assertThat(conversionService.convert(new StringBuilder("1"), Long.class)).isEqualTo(2);
4645
}

0 commit comments

Comments
 (0)