Skip to content

Commit cccb5bb

Browse files
committed
Fix eclipse warnings.
1 parent 4795c30 commit cccb5bb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,10 +2392,9 @@ public static <T extends Comparable<T>> List<T> sort(final Iterable<T> iterable)
23922392
return localList;
23932393
}
23942394

2395-
@SuppressWarnings("unchecked")
23962395
public static <T extends Comparable<T>> T[] sort(final T ... array) {
23972396
final T[] localArray = array.clone();
2398-
Arrays.<T>sort(localArray);
2397+
Arrays.sort(localArray);
23992398
return localArray;
24002399
}
24012400

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public boolean isPresent() {
5454
return !absent;
5555
}
5656

57-
public <U> Optional<U> map(Function<? super T, ? extends U> mapper) {
57+
public <U> Optional<? extends U> map(Function<? super T, ? extends U> mapper) {
5858
$.checkNotNull(mapper);
5959
if (!isPresent()) {
6060
return absent();

0 commit comments

Comments
 (0)