From f16f50f255dbcd44bd6a255c2d45ae3c3e9a59a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Thu, 9 Mar 2023 17:56:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91oConvertUtils?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jero/common/util/oConvertUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/oConvertUtils.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/oConvertUtils.java index 819db86e..08d0300b 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/oConvertUtils.java +++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/oConvertUtils.java @@ -2,7 +2,6 @@ package com.jero.common.util; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.IOUtils; -import org.apache.poi.ss.formula.functions.T; import org.springframework.beans.BeanUtils; import javax.servlet.http.HttpServletRequest; @@ -627,7 +626,7 @@ public class oConvertUtils { * list == null : true * list.size() == 0 : true */ - public static boolean listIsEmpty(Collection list) { + public static boolean listIsEmpty(Collection> list) { return (list == null || list.isEmpty()); } @@ -639,7 +638,7 @@ public class oConvertUtils { * list == null : false * list.size() == 0 : false */ - public static boolean listIsNotEmpty(Collection list) { + public static boolean listIsNotEmpty(Collection> list) { return !listIsEmpty(list); }