Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 81577 invoked by uid 500); 21 Nov 2001 14:40:11 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 81568 invoked by uid 500); 21 Nov 2001 14:40:11 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 21 Nov 2001 14:24:57 -0000 Message-ID: <20011121142457.22046.qmail@icarus.apache.org> From: dims@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/components/store FilesystemQueueImpl.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N dims 01/11/21 06:24:57 Modified: src/org/apache/cocoon/components/store FilesystemQueueImpl.java Added: lib avalon-excalibur-20011121.jar avalon-framework-20011121.jar Removed: lib avalon-excalibur-4.0.jar avalon-framework-4.0.jar Log: Updating to latest Framework and Excalibur from Avalon CVS. Revision Changes Path 1.1 xml-cocoon2/lib/avalon-excalibur-20011121.jar <> 1.1 xml-cocoon2/lib/avalon-framework-20011121.jar <> 1.3 +5 -5 xml-cocoon2/src/org/apache/cocoon/components/store/FilesystemQueueImpl.java Index: FilesystemQueueImpl.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/store/FilesystemQueueImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- FilesystemQueueImpl.java 2001/11/21 10:45:40 1.2 +++ FilesystemQueueImpl.java 2001/11/21 14:24:57 1.3 @@ -176,7 +176,7 @@ * * @param element the element to be inserted */ - public void insert(Comparable element) { + public void insert(Object element) { if(this.linkedList.size() < maxobjects) { this.getLogger().debug("Insert Element in FilesystemQueue"); this.linkedList.addFirst(element); @@ -192,10 +192,10 @@ * @return the element at top of heap * @exception NoSuchElementException if isEmpty() == true */ - public Comparable peek() throws NoSuchElementException { + public Object peek() throws NoSuchElementException { try { this.getLogger().debug("Peek Element in FilesystemQueue"); - return (Comparable)linkedList.getLast(); + return linkedList.getLast(); } catch (NoSuchElementException e) { this.getLogger().error("Error peeking element from the queue",e); return null; @@ -208,10 +208,10 @@ * @return the element at top of heap * @exception NoSuchElementException if isEmpty() == true */ - public Comparable pop() throws NoSuchElementException { + public Object pop() throws NoSuchElementException { try { this.getLogger().debug("Pop Element in FilesystemQueue"); - return (Comparable)linkedList.removeLast(); + return linkedList.removeLast(); } catch (NoSuchElementException e) { this.getLogger().error("Error popping element from the queue",e); return null; ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org