mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Prefer ArrayList for Collection when source is an array
Closes gh-28048
This commit is contained in:
+1
-1
@@ -343,7 +343,7 @@ class DefaultConversionServiceTests {
|
||||
@Test
|
||||
void convertArrayToCollectionInterface() {
|
||||
Collection<?> result = conversionService.convert(new String[] {"1", "2", "3"}, Collection.class);
|
||||
assertThat(result).isEqualTo(Set.of("1", "2", "3"));
|
||||
assertThat(result).isEqualTo(List.of("1", "2", "3"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user