lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/util PriorityQueue.java
Date Wed, 08 Sep 2004 20:43:43 GMT
dnaber      2004/09/08 13:43:43

  Modified:    src/java/org/apache/lucene/util PriorityQueue.java
  Log:
  use the same amount of whitespace everywhere, no functional change
  
  Revision  Changes    Path
  1.7       +6 -6      jakarta-lucene/src/java/org/apache/lucene/util/PriorityQueue.java
  
  Index: PriorityQueue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/util/PriorityQueue.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PriorityQueue.java	29 Mar 2004 22:48:05 -0000	1.6
  +++ PriorityQueue.java	8 Sep 2004 20:43:43 -0000	1.7
  @@ -55,16 +55,16 @@
      */
     public boolean insert(Object element){
       if(size < maxSize){
  -        put(element);
  -        return true;
  +      put(element);
  +      return true;
       }
       else if(size > 0 && !lessThan(element, top())){
  -        heap[1] = element;
  -        adjustTop();
  -        return true;
  +      heap[1] = element;
  +      adjustTop();
  +      return true;
       }
       else
  -        return false;
  +      return false;
      }
   
     /** Returns the least element of the PriorityQueue in constant time. */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message