Administrator 2 年之前
父节点
当前提交
8c20cd3c27
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/main/java/com/xiesx/fastboot/utils/CopyUtils.java

+ 5 - 0
src/main/java/com/xiesx/fastboot/utils/CopyUtils.java

@@ -16,6 +16,7 @@ import lombok.NonNull;
 
 public class CopyUtils {
 
+    @Deprecated
     public static String[] ignoreNullNames(@NonNull Object source) {
 
         final BeanWrapper beanWrapper = new BeanWrapperImpl(source);
@@ -47,6 +48,10 @@ public class CopyUtils {
         return noValuePropertySet.toArray(result);
     }
 
+    public static String[] nullNames(@NonNull Object source){
+        return ignoreNullNames(source);
+    }
+
     public static String[] notNullNames(@NonNull Object source) {
 
         final BeanWrapper beanWrapper = new BeanWrapperImpl(source);