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:
Thomas Neidhart 2012-07-15 08:50:52 +00:00
parent f8ea63dfdf
commit 203a81890d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}