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

@@ -85,11 +85,6 @@ public class LocalStorageProperties {
public void setMaxFileSize(DataSize maxFileSize) {
this.maxFileSize = maxFileSize;
}
@Override
public String toString() {
return "LocalStorageMapping{" + "pathPattern='" + pathPattern + '\'' + ", location='" + location + '\'' + ", maxFileSize=" + maxFileSize + '}';
}
}
public boolean isEnabled() {
@@ -107,9 +102,4 @@ public class LocalStorageProperties {
public void setMapping(Map<String, LocalStorageMapping> mapping) {
this.mapping = mapping;
}
@Override
public String toString() {
return "LocalStorageProperties{" + "enabled=" + enabled + ", mapping=" + mapping + '}';
}
}