diff --git a/src/java/org/apache/lucene/util/PriorityQueue.java b/src/java/org/apache/lucene/util/PriorityQueue.java index 5d065f8f32d..d0212776093 100644 --- a/src/java/org/apache/lucene/util/PriorityQueue.java +++ b/src/java/org/apache/lucene/util/PriorityQueue.java @@ -116,8 +116,8 @@ public abstract class PriorityQueue { } /** - * insertWithOverflow() is the same as insert() except its - * return value: it returns the object (if any) that was + * Adds an Object to a PriorityQueue in log(size) time. + * It returns the object (if any) that was * dropped off the heap because it was full. This can be * the given parameter (in case it is smaller than the * full heap's minimum, and couldn't be added), or another