Fix compilation problems with OpenJDK 1.6.0_24.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1436601 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-01-21 20:41:58 +00:00
parent 3712f1a147
commit 6b5042cb52
4 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ public abstract class AbstractQuantifierPredicate<T> implements Predicate<T>, Pr
* @since 3.1
*/
public Predicate<? super T>[] getPredicates() {
return FunctorUtils.copy(iPredicates);
return FunctorUtils.<T>copy(iPredicates);
}
}

View File

@ -110,7 +110,7 @@ public class ChainedClosure<E> implements Closure<E>, Serializable {
* @since 3.1
*/
public Closure<? super E>[] getClosures() {
return FunctorUtils.copy(iClosures);
return FunctorUtils.<E>copy(iClosures);
}
}

View File

@ -111,7 +111,7 @@ public class ChainedTransformer<T> implements Transformer<T, T>, Serializable {
* @since 3.1
*/
public Transformer<? super T, ? extends T>[] getTransformers() {
return FunctorUtils.copy(iTransformers);
return FunctorUtils.<T, T>copy(iTransformers);
}
}

View File

@ -146,7 +146,7 @@ public class SwitchClosure<E> implements Closure<E>, Serializable {
* @since 3.1
*/
public Predicate<? super E>[] getPredicates() {
return FunctorUtils.copy(iPredicates);
return FunctorUtils.<E>copy(iPredicates);
}
/**
@ -156,7 +156,7 @@ public class SwitchClosure<E> implements Closure<E>, Serializable {
* @since 3.1
*/
public Closure<? super E>[] getClosures() {
return FunctorUtils.copy(iClosures);
return FunctorUtils.<E>copy(iClosures);
}
/**