# | Line 70 | Line 70 | public class HotPotatoes { | |
---|---|---|
70 | System.out.printf("implClazz=%s, argClazz=%s\n", | |
71 | implClazz.getName(), argClazz.getName()); | |
72 | final int iterations = 100000; | |
73 | < | final List<Integer> list = (List<Integer>) argClazz.newInstance(); |
73 | > | final List<Integer> list = (List<Integer>) |
74 | > | argClazz.getDeclaredConstructor().newInstance(); |
75 | final Integer one = Integer.valueOf(1); | |
76 | final List<Integer> oneElementList = Collections.singletonList(one); | |
77 | final Constructor<? extends Collection> constr |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |