You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2002/06/05 00:44:05 UTC

DO NOT REPLY [Bug 9454] - PriorityQueue.clear() does not set last element to null

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9454>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9454

PriorityQueue.clear() does not set last element to null

otis@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From otis@apache.org  2002-06-04 22:44 -------
Are you sure about that?
This is what the code looks like.  As far as I can tell this should take care of
the last element, as well, no?


  public final void clear() {
    for (int i = 0; i < size; i++)
      heap[i] = null;
    size = 0;
  }

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>