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

@@ -176,9 +176,4 @@ public class LogRecord {
public Instant getTimestamp() {
return timestamp;
}
@Override
public String toString() {
return "LogRecord{" + "description='" + description + '\'' + ", module='" + module + '\'' + ", request=" + request + ", response=" + response + ", timeTaken=" + timeTaken + ", timestamp=" + timestamp + '}';
}
}

View File

@@ -169,9 +169,4 @@ public class LogRequest {
public void setOs(String os) {
this.os = os;
}
@Override
public String toString() {
return "LogRequest{" + "method='" + method + '\'' + ", url=" + url + ", ip='" + ip + '\'' + ", headers=" + headers + ", body='" + body + '\'' + ", param=" + param + ", address='" + address + '\'' + ", browser='" + browser + '\'' + ", os='" + os + '\'' + '}';
}
}

View File

@@ -89,9 +89,4 @@ public class LogResponse {
public void setParam(Map<String, Object> param) {
this.param = param;
}
@Override
public String toString() {
return "LogResponse{" + "status=" + status + ", headers=" + headers + ", body='" + body + '\'' + ", param=" + param + '}';
}
}

View File

@@ -70,9 +70,4 @@ public class LogProperties {
public void setInclude(Set<Include> include) {
this.include = include;
}
@Override
public String toString() {
return "LogProperties{" + "enabled=" + enabled + ", isPrint=" + isPrint + ", include=" + include + '}';
}
}