BAEL-4543: Use the prefered toArray() approach (#9869)

This commit is contained in:
kwoyke 2020-08-14 17:36:57 +02:00 committed by GitHub
parent c1d934e8a4
commit 459662daf6
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public class JavaCollectionConversionUnitTest {
final Map<Integer, String> sourceMap = createMap();
final Collection<String> values = sourceMap.values();
final String[] targetArray = values.toArray(new String[values.size()]);
final String[] targetArray = values.toArray(new String[0]);
}
@Test