ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collection/HotPotatoes.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collection/HotPotatoes.java (file contents):
Revision 1.4 by jsr166, Mon Jan 8 03:12:03 2018 UTC vs.
Revision 1.5 by jsr166, Sun Jun 10 16:38:03 2018 UTC

# 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines