feat:[REQ-3488] 过滤入参中集合类型中可能有null值的元素

This commit is contained in:
liuyang 2025-01-13 16:04:15 +08:00
parent 9720d8d8b0
commit 46a70312d2

View File

@ -232,7 +232,7 @@ public class CooperateShipServiceImpl implements CooperateShipService {
* @return
* @param <T>
*/
private <T> Collection<T> filterNullValues(Collection<T> collection) {
private <C extends Collection<T>, T> C filterNullValues(C collection) {
if (CollUtil.isEmpty(collection)) {
return collection;
}