[ 
https://issues.apache.org/jira/browse/COLLECTIONS-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633267#comment-13633267
 ] 

Thomas Neidhart commented on COLLECTIONS-432:
---------------------------------------------

Removed Buffer interface from ArrayStack in r1468579.
Unfortunately, the Queue interface can not be implemented for ArrayStack as the 
signatures for peek/pop are conflicting.
                
> Replace Buffer interface with java.util.Queue
> ---------------------------------------------
>
>                 Key: COLLECTIONS-432
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-432
>             Project: Commons Collections
>          Issue Type: Sub-task
>    Affects Versions: 4.0
>            Reporter: Thomas Neidhart
>            Priority: Blocker
>             Fix For: 4.0
>
>         Attachments: commons.patch
>
>
> Since jdk 1.5, a new interface Queue is available which is basically 
> identical to the Buffer interface of CC.
> Some of our implementations already have a counterpart in the jdk:
> * BoundedFifoBuffer -> LinkedBlockingQueue or ArrayBlockingQueue
> * UnboundedFifoBuffer -> LinkedList or ArrayDeque
> * PriorityBuffer -> PriorityQueue
> Thus the Buffer queue shall be replaced by the existing Queue, unneeded 
> implementations be removed and the rest adapted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to