mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +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 反转元素顺序
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public EasyStream<T> reverse() {
|
||||
//noinspection unchecked
|
||||
final T[] array = (T[]) toArray();
|
||||
ArrayUtil.reverse(array);
|
||||
return of(array).parallel(isParallel()).onClose(stream::close);
|
||||
|
Loading…
x
Reference in New Issue
Block a user