minor cleanup

This commit is contained in:
eugenp
2016-06-23 01:04:21 +03:00
parent 28029711e4
commit 3c17c9ef4a
4 changed files with 11 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ public class JavaCollectionConversionUnitTest {
@Test
public final void givenUsingCoreJava_whenListConvertedToArray_thenCorrect() {
final List<Integer> sourceList = Lists.<Integer> newArrayList(0, 1, 2, 3, 4, 5);
final List<Integer> sourceList = Arrays.asList(0, 1, 2, 3, 4, 5);
final Integer[] targetArray = sourceList.toArray(new Integer[sourceList.size()]);
}