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 <<Binary file>> 1.1 xml-cocoon2/lib/avalon-framework-20011121.jar <<Binary file>> 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: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]