refactor: 优化部分代码

移除所有 toString(),修复 Sonar、Codacy 扫描问题
This commit is contained in:
2024-02-03 10:43:32 +08:00
parent 5457bc21c3
commit 0e3d388eb7
30 changed files with 3 additions and 171 deletions

View File

@@ -104,9 +104,4 @@ public class BaseDO implements Serializable {
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "BaseDO{" + "id=" + id + ", createUser=" + createUser + ", createTime=" + createTime + ", updateUser=" + updateUser + ", updateTime=" + updateTime + '}';
}
}

View File

@@ -99,9 +99,4 @@ public class PageQuery extends SortQuery {
public void setSize(Integer size) {
this.size = size;
}
@Override
public String toString() {
return "PageQuery{" + "page=" + page + ", size=" + size + "} " + super.toString();
}
}

View File

@@ -25,7 +25,6 @@ import top.charles7c.continew.starter.core.constant.StringConstants;
import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
@@ -76,9 +75,4 @@ public class SortQuery implements Serializable {
public void setSort(String[] sort) {
this.sort = sort;
}
@Override
public String toString() {
return "SortQuery{" + "sort=" + Arrays.toString(sort) + '}';
}
}

View File

@@ -81,9 +81,4 @@ public class BaseDetailResp extends BaseResp {
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "BaseDetailResp{" + "updateUser=" + updateUser + ", updateUserString='" + updateUserString + '\'' + ", updateTime=" + updateTime + "} " + super.toString();
}
}

View File

@@ -113,9 +113,4 @@ public class BaseResp implements Serializable {
public void setDisabled(Boolean disabled) {
this.disabled = disabled;
}
@Override
public String toString() {
return "BaseResp{" + "id=" + id + ", createUser=" + createUser + ", createUserString='" + createUserString + '\'' + ", createTime=" + createTime + ", disabled=" + disabled + '}';
}
}

View File

@@ -142,9 +142,4 @@ public class PageResp<L> implements Serializable {
public void setTotal(long total) {
this.total = total;
}
@Override
public String toString() {
return "PageResp{" + "list=" + list + ", total=" + total + '}';
}
}