rwaldhoff    2003/11/30 23:33:48

  Modified:    functor/src/java/org/apache/commons/functor/util
                        BinarySearch.java
  Log:
  resuse constructor
  
  Revision  Changes    Path
  1.6       +7 -6      
jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/util/BinarySearch.java
  
  Index: BinarySearch.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/util/BinarySearch.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BinarySearch.java 1 Dec 2003 07:32:54 -0000       1.5
  +++ BinarySearch.java 1 Dec 2003 07:33:47 -0000       1.6
  @@ -80,13 +80,14 @@
      //---------------------------------------------------------------
   
       public BinarySearch(List list, Comparable item) {
  -        this.list = list; this.item = item;
  -        this.lower = 0; this.upper = list.size();
  +        this(list,item,0,list.size());
       }
   
       public BinarySearch(List list, Comparable item, int lower, int upper) {
  -        this.list = list; this.item = item;
  -        this.lower = lower; this.upper = upper;
  +        this.list = list; 
  +        this.item = item;
  +        this.lower = lower; 
  +        this.upper = upper;
       }
   
       // instance methods variables
  
  
  

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

Reply via email to