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

Comparing jsr166/src/test/jtreg/util/LinkedHashSet/Basic.java (file contents):
Revision 1.3 by jsr166, Sun Sep 5 21:32:19 2010 UTC vs.
Revision 1.4 by jsr166, Mon Dec 5 04:08:46 2011 UTC

# Line 99 | Line 99 | public class Basic {
99      static Set clone(Set s) throws Exception {
100          Set clone;
101          int method = rnd.nextInt(3);
102 <        clone = (method==0 ?  (Set) ((LinkedHashSet)s).clone() :
102 >        clone = (method==0 ? (Set) ((LinkedHashSet)s).clone() :
103                   (method==1 ? new LinkedHashSet(Arrays.asList(s.toArray())) :
104                    serClone(s)));
105          if (!s.equals(clone))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines