diff --git a/src/main/java/org/apache/commons/collections4/comparators/BooleanComparator.java b/src/main/java/org/apache/commons/collections4/comparators/BooleanComparator.java index 3a78f29fe..a7524ba75 100644 --- a/src/main/java/org/apache/commons/collections4/comparators/BooleanComparator.java +++ b/src/main/java/org/apache/commons/collections4/comparators/BooleanComparator.java @@ -91,6 +91,7 @@ public final class BooleanComparator implements Comparator, Serializabl * @param trueFirst when true, sort * true Booleans before false * @return a singleton BooleanComparator instance + * @since 4.0 */ public static BooleanComparator booleanComparator(final boolean trueFirst) { return trueFirst ? TRUE_FIRST : FALSE_FIRST; diff --git a/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java b/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java index 9c02f2086..1d82514d8 100644 --- a/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java +++ b/src/main/java/org/apache/commons/collections4/comparators/ComparableComparator.java @@ -58,6 +58,7 @@ public class ComparableComparator> implements Co * * @param the element type * @return the singleton ComparableComparator + * @since 4.0 */ @SuppressWarnings("unchecked") public static > ComparableComparator comparableComparator() {