[COLLECTIONS-510] Fix compilation errors with java 8. Thanks to Hollis Waite.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1584898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2014-04-04 20:33:19 +00:00
parent b0e7365e0c
commit 82b547ad25
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@
<body>
<release version="4.1" date="TBD" description="">
<action issue="COLLECTIONS-510" dev="tn" type="fix" due-to="Hollis Waite">
Fix compilation errors when using source level 1.8 and a recent java 8 compiler.
</action>
<action issue="COLLECTIONS-509" dev="tn" type="fix">
Clarified javadoc of "CollectionBag" wrt changes from the original Bag interface.
</action>

View File

@ -36,7 +36,7 @@ public class ReverseComparator<E> implements Comparator<E>, Serializable {
private static final long serialVersionUID = 2858887242028539265L;
/** The comparator being decorated. */
private final Comparator<E> comparator;
private final Comparator<? super E> comparator;
//-----------------------------------------------------------------------
/**