mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-09 20:57:23 +08:00
refactor: 优化部分代码
移除所有 toString(),修复 Sonar、Codacy 扫描问题
This commit is contained in:
@@ -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 + '}';
|
||||
}
|
||||
}
|
||||
|
@@ -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 + '}';
|
||||
}
|
||||
}
|
||||
|
@@ -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 + '}';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user