This commit is contained in:
Looly 2022-08-28 19:56:51 +08:00
parent 680c12e423
commit 514483010e

View File

@ -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);