add null check

This commit is contained in:
Looly
2025-12-08 17:06:43 +08:00
parent 695bc0ae4d
commit 3a602039d6

View File

@@ -430,6 +430,9 @@ public class ListUtil {
* @since 4.0.6
*/
public static <T> List<T> reverseNew(final List<T> list) {
if (null == list) {
return null;
}
List<T> list2 = ObjUtil.clone(list);
if (null == list2) {
// 不支持clone