Skip to content

Commit

Permalink
Merge pull request #1140 from MartinWitt/laughing-train/Qodana/-10074…
Browse files Browse the repository at this point in the history
…81147

refactor: refactor bad smell UnnecessaryToStringCall
  • Loading branch information
hcoles authored Jan 6, 2023
2 parents cca2ef2 + 00ef635 commit 5e0fd2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public void report(final PrintStream out) {
sb.append(each + " ");
i++;
if ((i % 4) == 0) {
out.println("> " + sb.toString());
out.println("> " + sb);
sb = new StringBuilder();
}
}
out.println("> " + sb.toString());
out.println("> " + sb);
}

public String getMutatorName() {
Expand Down
2 changes: 1 addition & 1 deletion pitest/src/main/java/org/pitest/util/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public String format(final LogRecord record) {
if (throwable != null) {
final StringWriter sink = new StringWriter();
throwable.printStackTrace(new PrintWriter(sink, true));
buf.append(sink.toString());
buf.append(sink);
}

return buf.toString();
Expand Down

0 comments on commit 5e0fd2d

Please sign in to comment.