mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
680c12e423
commit
514483010e
@ -1050,8 +1050,8 @@ public class EasyStream<T> implements Stream<T>, Iterable<T> {
|
|||||||
*
|
*
|
||||||
* @return 反转元素顺序
|
* @return 反转元素顺序
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public EasyStream<T> reverse() {
|
public EasyStream<T> reverse() {
|
||||||
//noinspection unchecked
|
|
||||||
final T[] array = (T[]) toArray();
|
final T[] array = (T[]) toArray();
|
||||||
ArrayUtil.reverse(array);
|
ArrayUtil.reverse(array);
|
||||||
return of(array).parallel(isParallel()).onClose(stream::close);
|
return of(array).parallel(isParallel()).onClose(stream::close);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user