mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Clean up some code quality issues in GCP proxy
All changes are suggested by IntelliJ code inspection. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=189586104
This commit is contained in:
parent
22b575b17d
commit
c72e01f75e
13 changed files with 27 additions and 32 deletions
|
@ -37,16 +37,13 @@ public class GcpJsonFormatterTest {
|
|||
private final LogRecord logRecord = new LogRecord(Level.WARNING, MESSAGE);
|
||||
|
||||
private static String makeJson(String severity, String source, String message) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("{");
|
||||
builder.append(
|
||||
Joiner.on(",")
|
||||
return "{"
|
||||
+ Joiner.on(",")
|
||||
.join(
|
||||
makeJsonField("severity", severity),
|
||||
makeJsonField("source", source),
|
||||
makeJsonField("message", "\\n" + message)));
|
||||
builder.append("}\n");
|
||||
return builder.toString();
|
||||
makeJsonField("message", "\\n" + message))
|
||||
+ "}\n";
|
||||
}
|
||||
|
||||
private static String makeJsonField(String name, String content) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue