Fix compilation problem with jdk1.5 wrt generics.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1361659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f8ea63dfdf
commit
203a81890d
|
@ -361,7 +361,7 @@ public class PredicateUtils {
|
|||
*/
|
||||
public static <T> Predicate<T> eitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Predicate<T> onePredicate = onePredicate(predicate1, predicate2);
|
||||
Predicate<T> onePredicate = PredicateUtils.<T>onePredicate(predicate1, predicate2);
|
||||
return onePredicate;
|
||||
}
|
||||
|
||||
|
@ -410,7 +410,7 @@ public class PredicateUtils {
|
|||
*/
|
||||
public static <T> Predicate<T> neitherPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Predicate<T> nonePredicate = nonePredicate(predicate1, predicate2);
|
||||
Predicate<T> nonePredicate = PredicateUtils.<T>nonePredicate(predicate1, predicate2);
|
||||
return nonePredicate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue