# | 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"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |