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

Comparing jsr166/src/test/jtreg/util/PriorityQueue/PriorityQueueSort.java (file contents):
Revision 1.1 by dl, Wed Aug 27 13:42:53 2003 UTC vs.
Revision 1.4 by jsr166, Thu Apr 20 17:42:52 2006 UTC

# Line 1 | Line 1
1   /*
2 < * @test
3 < * @synopsis Checks that a priority queue returns elements in sorted order across various operations
2 > * @test %I% %E%
3 > * @bug 4486658
4 > * @summary Checks that a priority queue returns elements in sorted order across various operations
5   */
6  
7   import java.util.*;
# Line 9 | Line 10 | public class PriorityQueueSort {
10  
11      static class MyComparator implements Comparator<Integer> {
12          public int compare(Integer x, Integer y) {
13 <            int i = ((Integer)x).intValue();
14 <            int j = ((Integer)y).intValue();
13 >            int i = x.intValue();
14 >            int j = y.intValue();
15              if (i < j) return -1;
16              if (i > j) return 1;
17              return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines