Skip to content

Commit fca8c2c

Browse files
Replaced StringBuffer with StringBuilder in NetstatCommand. Tests pass. (#539)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: LSantha <LSantha@users.noreply.github.com> Co-authored-by: Levente Santha <levente@adobe.com>
1 parent ac4599c commit fca8c2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/src/commands/org/jnode/command/net/NetstatCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private void showStats(PrintWriter out, Statistics stat, int padSize)
7676
padOutput(out, padSize);
7777
out.print(str_none);
7878
} else {
79-
StringBuffer buffer = new StringBuffer();
79+
StringBuilder buffer = new StringBuilder();
8080
for (Statistic statistic : statistics) {
8181
buffer.append(paddedString(padSize)).append(statistic.getName()).append(' ')
8282
.append(statistic.getValue()).append("\n");

0 commit comments

Comments
 (0)