style: 添加注释说明。

This commit is contained in:
Suomm 2023-06-11 16:13:09 +08:00
parent bbb1412ba9
commit 1e603a0350
2 changed files with 3 additions and 2 deletions

View File

@ -275,11 +275,11 @@ public class BaseQueryWrapper<T extends BaseQueryWrapper<T>> implements CloneSup
clone.havingQueryCondition = ObjectUtil.clone(this.havingQueryCondition);
clone.orderBys = CollectionUtil.cloneArrayList(this.orderBys);
clone.unions = CollectionUtil.cloneArrayList(this.unions);
// copy List if necessary ...
if (this.endFragments != null){
clone.endFragments = CollectionUtil.newArrayList(this.endFragments);
}
// copy Map if necessary ...
if (this.context != null){
clone.context = CollectionUtil.newHashMap(this.context);
}

View File

@ -24,6 +24,7 @@ public class ObjectUtil {
private ObjectUtil() {}
public static Object cloneObject(Object value) {
// ROLE.ROLE_ID.ge(USER.USER_ID)
if (value instanceof CloneSupport) {
return ((CloneSupport<?>) value).clone();
}