commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestBinaryHeap.java
Date Sat, 17 Aug 2002 12:07:24 GMT
scolebourne    2002/08/17 05:07:24

  Modified:    collections/src/test/org/apache/commons/collections
                        TestBinaryHeap.java
  Log:
  ComparatorUtils renamed methods
  
  Revision  Changes    Path
  1.5       +6 -6      jakarta-commons/collections/src/test/org/apache/commons/collections/TestBinaryHeap.java
  
  Index: TestBinaryHeap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestBinaryHeap.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestBinaryHeap.java	3 Jul 2002 02:09:06 -0000	1.4
  +++ TestBinaryHeap.java	17 Aug 2002 12:07:24 -0000	1.5
  @@ -274,8 +274,8 @@
         BinaryHeap heap = (BinaryHeap)collection;
   
         Comparator c = heap.comparator();
  -      if (c == null) c = ComparatorUtils.NATURAL;
  -      if (!heap.m_isMinHeap) c = ComparatorUtils.reverse(c);
  +      if (c == null) c = ComparatorUtils.naturalComparator();
  +      if (!heap.m_isMinHeap) c = ComparatorUtils.reversedComparator(c);
   
         Object[] tree = heap.m_elements;
         for (int i = 1; i <= heap.m_size; i++) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message