scolebourne    2003/08/31 07:37:48

  Modified:    collections/src/java/org/apache/commons/collections/comparators
                        FixedOrderComparator.java
               collections/src/test/org/apache/commons/collections/comparators
                        TestFixedOrderComparator.java
  Log:
  Fix method name spelling
  bug 22844, from Janek Bogucki
  
  Revision  Changes    Path
  1.4       +4 -3      
jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/FixedOrderComparator.java
  
  Index: FixedOrderComparator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/FixedOrderComparator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FixedOrderComparator.java 31 Aug 2003 12:54:49 -0000      1.3
  +++ FixedOrderComparator.java 31 Aug 2003 14:37:48 -0000      1.4
  @@ -87,6 +87,7 @@
    *
    * @author David Leppik
    * @author Stephen Colebourne
  + * @author Janek Bogucki
    */
   public class FixedOrderComparator implements Comparator {
   
  @@ -192,7 +193,7 @@
       /** 
        * Gets the behavior for comparing unknown objects.
        */
  -    public int getUnkownObjectBehavior() {
  +    public int getUnknownObjectBehavior() {
           return unknownObjectBehavior;
       }
   
  
  
  
  1.2       +5 -5      
jakarta-commons/collections/src/test/org/apache/commons/collections/comparators/TestFixedOrderComparator.java
  
  Index: TestFixedOrderComparator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/comparators/TestFixedOrderComparator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestFixedOrderComparator.java     13 Apr 2003 17:37:26 -0000      1.1
  +++ TestFixedOrderComparator.java     31 Aug 2003 14:37:48 -0000      1.2
  @@ -207,11 +207,11 @@
           } catch (IllegalArgumentException e) {
               // success-- ignore
           }
  -        assertEquals(FixedOrderComparator.UNKNOWN_THROW_EXCEPTION, 
comparator.getUnkownObjectBehavior());
  +        assertEquals(FixedOrderComparator.UNKNOWN_THROW_EXCEPTION, 
comparator.getUnknownObjectBehavior());
   
           comparator = new FixedOrderComparator(topCities);
           comparator.setUnknownObjectBehavior(FixedOrderComparator.UNKNOWN_BEFORE);
  -        assertEquals(FixedOrderComparator.UNKNOWN_BEFORE, 
comparator.getUnkownObjectBehavior());
  +        assertEquals(FixedOrderComparator.UNKNOWN_BEFORE, 
comparator.getUnknownObjectBehavior());
           LinkedList keys = new LinkedList(Arrays.asList(topCities));
           keys.addFirst("Minneapolis");
           assertComparatorYieldsOrder(keys.toArray(new String[0]), comparator);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to