Skip to content

Commit bf4440d

Browse files
committed
Better parameter name
1 parent 7ecbc0c commit bf4440d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/apache/commons/cli/HelpFormatter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -947,28 +947,28 @@ protected StringBuffer renderWrappedText(final StringBuffer sb, final int width,
947947
* Renders the specified text width a maximum width. This method differs from renderWrappedText by not removing leading
948948
* spaces after a new line.
949949
*
950-
* @param sb The StringBuffer to place the rendered text into.
950+
* @param appendable The StringBuffer to place the rendered text into.
951951
* @param width The number of characters to display per line
952952
* @param nextLineTabStop The position on the next line for the first tab.
953953
* @param text The text to be rendered.
954954
*/
955-
private <A extends Appendable> A renderWrappedTextBlock(final A sb, final int width, final int nextLineTabStop, final String text) {
955+
private <A extends Appendable> A renderWrappedTextBlock(final A appendable, final int width, final int nextLineTabStop, final String text) {
956956
try {
957957
final BufferedReader in = new BufferedReader(new StringReader(text));
958958
String line;
959959
boolean firstLine = true;
960960
while ((line = in.readLine()) != null) {
961961
if (!firstLine) {
962-
sb.append(getNewLine());
962+
appendable.append(getNewLine());
963963
} else {
964964
firstLine = false;
965965
}
966-
appendWrappedText(sb, width, nextLineTabStop, line);
966+
appendWrappedText(appendable, width, nextLineTabStop, line);
967967
}
968968
} catch (final IOException e) { // NOPMD
969969
// cannot happen
970970
}
971-
return sb;
971+
return appendable;
972972
}
973973

974974
/**

0 commit comments

Comments
 (0)