diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DelimitedStringToCollectionConverterTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DelimitedStringToCollectionConverterTests.java index 097bee0aaa..9a4b5ddd83 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DelimitedStringToCollectionConverterTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DelimitedStringToCollectionConverterTests.java @@ -126,12 +126,14 @@ public class DelimitedStringToCollectionConverterTests { assertThat(converted).containsExactly("a,b,c"); } + @SuppressWarnings("unchecked") @Test public void convertWhenHasCollectionObjectTypeShouldUseCollectionObjectType() { TypeDescriptor sourceType = TypeDescriptor.valueOf(String.class); TypeDescriptor targetType = TypeDescriptor .nested(ReflectionUtils.findField(Values.class, "specificType"), 0); - MyCustomList converted = (MyCustomList) this.conversionService.convert("a*b", sourceType, targetType); + MyCustomList converted = (MyCustomList) this.conversionService + .convert("a*b", sourceType, targetType); assertThat(converted).containsExactly("a", "b"); }