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

Comparing jsr166/src/test/jtreg/util/Collections/NullComparator.java (file contents):
Revision 1.3 by jsr166, Sat Oct 21 00:44:23 2017 UTC vs.
Revision 1.4 by jsr166, Sun Oct 22 02:59:18 2017 UTC

# Line 37 | Line 37 | public class NullComparator {
37          List sorted = new ArrayList(list);
38          Collections.shuffle(list);
39  
40 <        Object a[] = list.toArray();
40 >        Object[] a = list.toArray();
41          Arrays.sort(a, null);
42          if (!Arrays.asList(a).equals(sorted))
43              throw new Exception("Arrays.sort");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines