miemie hace 5 años
padre
commit
5bad4dd116

+ 5 - 0
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/conditions/AbstractChainWrapper.java

@@ -311,4 +311,9 @@ public abstract class AbstractChainWrapper<T, R, Children extends AbstractChainW
     public void clear() {
         throw ExceptionUtils.mpe("can not use this method for \"%s\"", "clear");
     }
+
+    @Override
+    protected Object clone() throws CloneNotSupportedException {
+        throw ExceptionUtils.mpe("can not use this method for \"%s\"", "clone");
+    }
 }