Merge branch 'v6-dev' of github.com:dromara/hutool into v6-dev

This commit is contained in:
Looly 2023-02-20 15:42:29 +08:00
commit 7f129b6ae3

View File

@ -386,6 +386,9 @@ public class ListUtil {
* @since 4.0.6
*/
public static <T> List<T> reverse(final List<T> list) {
if (CollUtil.isEmpty(list)) {
return list;
}
Collections.reverse(list);
return list;
}