Skip to content

Commit

Permalink
Rename OutputForwardingConsole to StringBuilderConsole
Browse files Browse the repository at this point in the history
  • Loading branch information
hogejo authored and mkarg committed Dec 1, 2024
1 parent 4f0d18c commit 289f2f2
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 @@ -50,7 +50,7 @@ class TwoCommand {
.addCommand(new TwoCommand())
.build();
StringBuilder output = new StringBuilder();
jc.setConsole(new OutputForwardingConsole(output));
jc.setConsole(new StringBuilderConsole(output));
jc.usage();
String expected = "Usage: <main class> [options] [command] [command options]\n"
+ "\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import com.beust.jcommander.internal.Console;

public class OutputForwardingConsole implements Console {
public class StringBuilderConsole implements Console {

public final StringBuilder output;

public OutputForwardingConsole(StringBuilder output) {
public StringBuilderConsole(StringBuilder output) {
this.output = output;
}

Expand Down

0 comments on commit 289f2f2

Please sign in to comment.