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

Comparing jsr166/src/test/loops/PriorityQueueSort.java (file contents):
Revision 1.4 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.6 by jsr166, Tue Mar 15 19:47:05 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Josh Bloch and Doug Lea with assistance from members of
3   * JCP JSR-166 Expert Group and released to the public domain, as
4 < * explained at http://creativecommons.org/licenses/publicdomain
4 > * explained at http://creativecommons.org/publicdomain/zero/1.0/
5   */
6   /*
7   * @test
# Line 14 | Line 14 | public class PriorityQueueSort {
14  
15      static class MyComparator implements Comparator<Integer> {
16          public int compare(Integer x, Integer y) {
17 <            int i = ((Integer)x).intValue();
18 <            int j = ((Integer)y).intValue();
17 >            int i = x;
18 >            int j = y;
19              if (i < j) return -1;
20              if (i > j) return 1;
21              return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines