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

@@ -114,11 +114,6 @@ public class ProjectProperties {
public void setUrl(String url) {
this.url = url;
}
@Override
public String toString() {
return "Contact{" + "name='" + name + '\'' + ", email='" + email + '\'' + ", url='" + url + '\'' + '}';
}
}
/**
@@ -150,11 +145,6 @@ public class ProjectProperties {
public void setUrl(String url) {
this.url = url;
}
@Override
public String toString() {
return "License{" + "name='" + name + '\'' + ", url='" + url + '\'' + '}';
}
}
public String getName() {
@@ -228,9 +218,4 @@ public class ProjectProperties {
public void setProduction(boolean production) {
this.production = production;
}
@Override
public String toString() {
return "ProjectProperties{" + "name='" + name + '\'' + ", appName='" + appName + '\'' + ", version='" + version + '\'' + ", description='" + description + '\'' + ", url='" + url + '\'' + ", basePackage='" + basePackage + '\'' + ", contact=" + contact + ", license=" + license + ", production=" + production + '}';
}
}

View File

@@ -93,9 +93,4 @@ public class ThreadPoolProperties {
public void setKeepAliveSeconds(int keepAliveSeconds) {
this.keepAliveSeconds = keepAliveSeconds;
}
@Override
public String toString() {
return "ThreadPoolProperties{" + "enabled=" + enabled + ", corePoolSize=" + corePoolSize + ", maxPoolSize=" + maxPoolSize + ", queueCapacity=" + queueCapacity + ", keepAliveSeconds=" + keepAliveSeconds + '}';
}
}

View File

@@ -112,9 +112,4 @@ public class Table implements Serializable {
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "Table{" + "tableName='" + tableName + '\'' + ", comment='" + comment + '\'' + ", engine='" + engine + '\'' + ", charset='" + charset + '\'' + ", createTime=" + createTime + ", updateTime=" + updateTime + '}';
}
}