Ver Fonte

优化逻辑

zhouhao há 7 anos atrás
pai
commit
ec2d36e47f

+ 2 - 4
hsweb-commons/hsweb-commons-entity/src/main/java/org/hswebframework/web/commons/entity/GenericEntity.java

@@ -17,8 +17,6 @@
  */
 
 package org.hswebframework.web.commons.entity;
-
-import java.util.Collections;
 import java.util.LinkedHashMap;
 import java.util.Map;
 
@@ -38,11 +36,11 @@ public interface GenericEntity<PK> extends CloneableEntity {
     void setId(PK id);
 
     default Map<String, Object> getProperties() {
-        return Collections.emptyMap();
+        return null;
     }
 
     default void setProperties(Map<String, Object> properties) {
-        throw new UnsupportedOperationException("不支持此操作");
+
     }
 
     @SuppressWarnings("unchecked")