mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
add null check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user