Caratacus преди 6 години
родител
ревизия
06c684475f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/query/EmptyWrapper.java

+ 1 - 1
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/query/EmptyWrapper.java

@@ -61,7 +61,7 @@ public class EmptyWrapper<T> extends QueryWrapper<T> implements Serializable {
     }
 
     public EmptyWrapper<T> setEntity(T entity) {
-        throw new UnsupportedOperationException();
+        return this;
     }
 
     protected void initEntityClass() {