From lucene-dev-return-1702-qmlist-jakarta-archive-lucene-dev=jakarta.apache.org@jakarta.apache.org Tue Jun 04 22:44:00 2002 Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 52360 invoked from network); 4 Jun 2002 22:44:00 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Jun 2002 22:44:00 -0000 Received: (qmail 27583 invoked by uid 97); 4 Jun 2002 22:44:06 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 27557 invoked by uid 97); 4 Jun 2002 22:44:05 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 27531 invoked by uid 50); 4 Jun 2002 22:44:05 -0000 Date: 4 Jun 2002 22:44:05 -0000 Message-ID: <20020604224405.27530.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: lucene-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 9454] - PriorityQueue.clear() does not set last element to null X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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: For additional commands, e-mail: