From 82b547ad25147df44f27a3534a5b618755217378 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Fri, 4 Apr 2014 20:33:19 +0000 Subject: [PATCH] [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 --- src/changes/changes.xml | 3 +++ .../commons/collections4/comparators/ReverseComparator.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b99374315..d90ba2bdf 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,9 @@ + + Fix compilation errors when using source level 1.8 and a recent java 8 compiler. + Clarified javadoc of "CollectionBag" wrt changes from the original Bag interface. diff --git a/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java b/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java index 10a0a8124..ebdbd8667 100644 --- a/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java +++ b/src/main/java/org/apache/commons/collections4/comparators/ReverseComparator.java @@ -36,7 +36,7 @@ public class ReverseComparator implements Comparator, Serializable { private static final long serialVersionUID = 2858887242028539265L; /** The comparator being decorated. */ - private final Comparator comparator; + private final Comparator comparator; //----------------------------------------------------------------------- /**