I have solved casting the list and the method from:
public static <E> void copy(List<E> master, List<? super E> copy) {
if ((master == null) || (copy == null)) {
return;
}
copy.clear();
copy.addAll(master);
}
become:
public static <E> void copy(List<E> master, List<? super E> copy) {
if ((master == null) || (copy == null)) {
return;
}
copy.clear();
((List<E>)copy).addAll(master);
}
Por favor, identifíquese para poder marcar esto como inapropiado