[COLLECTIONS-558] Change return type of ListOrderedSet#remove(int) to the generic type parameter. Thanks to Felix Rabe
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1669140 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ae97a498d1
commit
640670bd86
|
@ -22,6 +22,9 @@
|
|||
<body>
|
||||
|
||||
<release version="4.1" date="TBD" description="">
|
||||
<action issue="COLLECTIONS-558" dev="tn" type="fix" due-to="Felix Rabe">
|
||||
Changed return type of "ListOrderedSet#remove(int)" from Object to the generic type parameter.
|
||||
</action>
|
||||
<action issue="COLLECTIONS-555" dev="tn" type="fix" due-to="M Kim">
|
||||
Added clarification to javadoc of "TreeBag#add(Object)" wrt null arguments.
|
||||
</action>
|
||||
|
|
|
@ -345,8 +345,8 @@ public class ListOrderedSet<E>
|
|||
* @return the element that has been remove from the ordered set
|
||||
* @see List#remove(int)
|
||||
*/
|
||||
public Object remove(final int index) {
|
||||
final Object obj = setOrder.remove(index);
|
||||
public E remove(final int index) {
|
||||
final E obj = setOrder.remove(index);
|
||||
remove(obj);
|
||||
return obj;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue