Permalink
Browse files

Changed Cursors to be compliant with the Eclipse compiler.

  • Loading branch information...
ChristianBeilschmidt committed Jan 29, 2016
1 parent 554cb85 commit adfd97c25114f6ad4bdb26e69fe12db9328ecc51
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/xxl/core/cursors/Cursors.java
@@ -464,7 +464,7 @@ public static void print(Iterator<?> iterator) {
* order as provided by the iterator.
*/
public static <E, M> LinkedList<E> minima(Iterator<? extends E> iterator, Function<? super E, ? extends M> getFeature, Comparator<? super M> comparator) {
return minimize(iterator, getFeature, comparator).getValue();
return (LinkedList<E>) minimize(iterator, getFeature, comparator).getValue();
}
/**
@@ -484,7 +484,7 @@ public static void print(Iterator<?> iterator) {
* order as provided by the iterator.
*/
public static <E, M> LinkedList<E> maxima(Iterator<? extends E> iterator, Function<? super E, ? extends M> getFeature, Comparator<? super M> comparator) {
return maximize(iterator, getFeature, comparator).getValue();
return (LinkedList<E>) maximize(iterator, getFeature, comparator).getValue();
}
/**
@@ -553,7 +553,7 @@ public static void print(Iterator<?> iterator) {
* order as provided by the iterator.
*/
public static <E, M extends Comparable<M>> LinkedList<E> minima(Iterator<? extends E> iterator, Function<? super E, ? extends M> getFeature) {
return minimize(iterator, getFeature).getValue();
return (LinkedList<E>) minimize(iterator, getFeature).getValue();
}
/**
@@ -574,7 +574,7 @@ public static void print(Iterator<?> iterator) {
* order as provided by the iterator.
*/
public static <E, M extends Comparable<M>> LinkedList<E> maxima(Iterator<? extends E> iterator, Function<? super E, ? extends M> getFeature) {
return maximize(iterator, getFeature).getValue();
return (LinkedList<E>) maximize(iterator, getFeature).getValue();
}
/**
@@ -623,7 +623,7 @@ public static void print(Iterator<?> iterator) {
* order as provided by the iterator.
*/
public static <E> LinkedList<E> minima(Iterator<? extends E> iterator, Comparator<? super E> comparator) {
return minimize(iterator, comparator).getValue();
return (LinkedList<E>) minimize(iterator, comparator).getValue();
}
/**
@@ -638,7 +638,7 @@ public static void print(Iterator<?> iterator) {
* order as provided by the iterator.
*/
public static <E> LinkedList<E> maxima(Iterator<? extends E> iterator, Comparator<? super E> comparator) {
return maximize(iterator, comparator).getValue();
return (LinkedList<E>) maximize(iterator, comparator).getValue();
}
/**

0 comments on commit adfd97c

Please sign in to comment.