diff --git a/src/main/java/com/samskivert/util/CollectionUtil.java b/src/main/java/com/samskivert/util/CollectionUtil.java index 20b9f3a0..32b546f2 100644 --- a/src/main/java/com/samskivert/util/CollectionUtil.java +++ b/src/main/java/com/samskivert/util/CollectionUtil.java @@ -135,7 +135,7 @@ public class CollectionUtil * * @throws NoSuchElementException if the Iterable is empty. */ - public static > List maxList (Iterable iterable) + public static > List maxList (Iterable iterable) { return maxList(iterable, new Comparator() { public int compare (T o1, T o2) { @@ -150,9 +150,9 @@ public class CollectionUtil * * @throws NoSuchElementException if the Iterable is empty. */ - public static List maxList (Iterable iterable, Comparator comp) + public static List maxList (Iterable iterable, Comparator comp) { - Iterator itr = iterable.iterator(); + Iterator itr = iterable.iterator(); T max = itr.next(); List maxes = new ArrayList(); maxes.add(max); @@ -186,7 +186,7 @@ public class CollectionUtil * * @throws NoSuchElementException if the Iterable is empty. */ - public static > List minList (Iterable iterable) + public static > List minList (Iterable iterable) { return maxList(iterable, java.util.Collections.reverseOrder()); } @@ -197,7 +197,7 @@ public class CollectionUtil * * @throws NoSuchElementException if the Iterable is empty. */ - public static List minList (Iterable iterable, Comparator comp) + public static List minList (Iterable iterable, Comparator comp) { return maxList(iterable, java.util.Collections.reverseOrder(comp)); }