UnmodifiableBoundedCollection.unmodifiableBoundedCollection is an infinite loop
-------------------------------------------------------------------------------

                 Key: COLLECTIONS-380
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-380
             Project: Commons Collections
          Issue Type: Bug
          Components: Collection
            Reporter: Dave Brosius
            Priority: Minor


This method, just calls itself. As BoundedCollection extends Collection, it 
would seem to me that this method should be removed:


    /**
     * Factory method to create an unmodifiable bounded collection.
     *
     * @param coll  the <code>BoundedCollection</code> to decorate, must not be 
null
     * @return a new unmodifiable bounded collection
     * @throws IllegalArgumentException if bag is null
     */
    public static <E> BoundedCollection<E> 
unmodifiableBoundedCollection(BoundedCollection<E> coll) {
        return unmodifiableBoundedCollection(coll);
    }


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to