mirror of https://github.com/apache/lucene.git
use the same amount of whitespace everywhere, no functional change
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150501 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d31c31a84f
commit
54bfbc30de
|
@ -55,16 +55,16 @@ public abstract class PriorityQueue {
|
|||
*/
|
||||
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. */
|
||||
|
|
Loading…
Reference in New Issue