File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/main/java/com/github/underscore Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments