ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/SetBash.java
(Generate patch)

Comparing jsr166/src/test/loops/SetBash.java (file contents):
Revision 1.9 by jsr166, Thu Dec 18 18:43:22 2014 UTC vs.
Revision 1.10 by jsr166, Sun Oct 23 03:03:24 2016 UTC

# Line 92 | Line 92 | public class SetBash {
92  
93      static Set newSet(Class<?> cl, boolean synch) {
94          try {
95 <            Set s = (Set) cl.newInstance();
95 >            Set s = (Set) cl.getConstructor().newInstance();
96              if (synch)
97                  s = Collections.synchronizedSet(s);
98              if (!s.isEmpty())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines