This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-cli.git
commit bf4440d6b58f5fb2b3771e4f72a842a8eb441222 Author: Gary Gregory <[email protected]> AuthorDate: Sat Aug 10 08:58:44 2024 -0400 Better parameter name --- src/main/java/org/apache/commons/cli/HelpFormatter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/HelpFormatter.java b/src/main/java/org/apache/commons/cli/HelpFormatter.java index 5d0bd75..2e86455 100644 --- a/src/main/java/org/apache/commons/cli/HelpFormatter.java +++ b/src/main/java/org/apache/commons/cli/HelpFormatter.java @@ -947,28 +947,28 @@ public class HelpFormatter { * Renders the specified text width a maximum width. This method differs from renderWrappedText by not removing leading * spaces after a new line. * - * @param sb The StringBuffer to place the rendered text into. + * @param appendable The StringBuffer to place the rendered text into. * @param width The number of characters to display per line * @param nextLineTabStop The position on the next line for the first tab. * @param text The text to be rendered. */ - private <A extends Appendable> A renderWrappedTextBlock(final A sb, final int width, final int nextLineTabStop, final String text) { + private <A extends Appendable> A renderWrappedTextBlock(final A appendable, final int width, final int nextLineTabStop, final String text) { try { final BufferedReader in = new BufferedReader(new StringReader(text)); String line; boolean firstLine = true; while ((line = in.readLine()) != null) { if (!firstLine) { - sb.append(getNewLine()); + appendable.append(getNewLine()); } else { firstLine = false; } - appendWrappedText(sb, width, nextLineTabStop, line); + appendWrappedText(appendable, width, nextLineTabStop, line); } } catch (final IOException e) { // NOPMD // cannot happen } - return sb; + return appendable; } /**
