Skip to content

Commit 2bf7dd4

Browse files
committed
Fix type for sort() methods.
1 parent ce149e0 commit 2bf7dd4

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/com/github/underscore

1 file changed

+3
-3
lines changed

src/main/java/com/github/underscore/$.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,8 +1683,8 @@ public <F extends Comparable<? super F>> Chain<T> min(final Function1<T, F> func
16831683
return new Chain<T>($.min(list, func));
16841684
}
16851685

1686-
public Chain<T> sort() {
1687-
return new Chain<T>($.sort((List<Comparable>) list));
1686+
public Chain<Comparable> sort() {
1687+
return new Chain<Comparable>($.sort((List<Comparable>) list));
16881688
}
16891689

16901690
public <F extends Comparable<? super F>> Chain<T> sortBy(final Function1<T, F> func) {
@@ -1812,7 +1812,7 @@ public static <T extends Comparable<T>> T[] sort(final T ... array) {
18121812
return localArray;
18131813
}
18141814

1815-
public List<T> sort() {
1815+
public List<Comparable> sort() {
18161816
return sort((Iterable<Comparable>) iterable);
18171817
}
18181818

0 commit comments

Comments
 (0)