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

Comparing jsr166/src/test/tck/ConcurrentSkipListSetTest.java (file contents):
Revision 1.2 by dl, Wed Apr 19 15:10:54 2006 UTC vs.
Revision 1.3 by dl, Thu Apr 20 20:35:00 2006 UTC

# Line 700 | Line 700 | public class ConcurrentSkipListSetTest e
700          check(set,                 0, setSize - 1, true);
701          check(set.descendingSet(), 0, setSize - 1, false);
702  
703 <        bashSubSet(set.navigableSubSet(0, true, setSize, false),
703 >        bashSubSet(set.subSet(0, true, setSize, false),
704                     0, setSize - 1, true);
705      }
706  
# Line 807 | Line 807 | public class ConcurrentSkipListSetTest e
807  
808          // headSet - pick direction and endpoint inclusion randomly
809          boolean incl = rnd.nextBoolean();
810 <        NavigableSet<Integer> hm = set.navigableHeadSet(midPoint, incl);
810 >        NavigableSet<Integer> hm = set.headSet(midPoint, incl);
811          if (ascending) {
812              if (rnd.nextBoolean())
813                  bashSubSet(hm, min, midPoint - (incl ? 0 : 1), true);
# Line 824 | Line 824 | public class ConcurrentSkipListSetTest e
824  
825          // tailSet - pick direction and endpoint inclusion randomly
826          incl = rnd.nextBoolean();
827 <        NavigableSet<Integer> tm = set.navigableTailSet(midPoint,incl);
827 >        NavigableSet<Integer> tm = set.tailSet(midPoint,incl);
828          if (ascending) {
829              if (rnd.nextBoolean())
830                  bashSubSet(tm, midPoint + (incl ? 0 : 1), max, true);
# Line 849 | Line 849 | public class ConcurrentSkipListSetTest e
849          boolean lowIncl = rnd.nextBoolean();
850          boolean highIncl = rnd.nextBoolean();
851          if (ascending) {
852 <            NavigableSet<Integer> sm = set.navigableSubSet(
852 >            NavigableSet<Integer> sm = set.subSet(
853                  endpoints[0], lowIncl, endpoints[1], highIncl);
854              if (rnd.nextBoolean())
855                  bashSubSet(sm, endpoints[0] + (lowIncl ? 0 : 1),
# Line 858 | Line 858 | public class ConcurrentSkipListSetTest e
858                  bashSubSet(sm.descendingSet(), endpoints[0] + (lowIncl ? 0 : 1),
859                             endpoints[1] - (highIncl ? 0 : 1), false);
860          } else {
861 <            NavigableSet<Integer> sm = set.navigableSubSet(
861 >            NavigableSet<Integer> sm = set.subSet(
862                  endpoints[1], highIncl, endpoints[0], lowIncl);
863              if (rnd.nextBoolean())
864                  bashSubSet(sm, endpoints[0] + (lowIncl ? 0 : 1),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines