BAEL-4543: Use the prefered toArray() approach (#9869)
This commit is contained in:
parent
c1d934e8a4
commit
459662daf6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue