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 ab4fed2364a86b1b4fd3dfb596167b48c760bdfb Author: Gary Gregory <[email protected]> AuthorDate: Sat Aug 10 08:52:12 2024 -0400 Better parameter name Better instance variable 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 c62967f..5d0bd75 100644 --- a/src/main/java/org/apache/commons/cli/HelpFormatter.java +++ b/src/main/java/org/apache/commons/cli/HelpFormatter.java @@ -84,7 +84,7 @@ public class HelpFormatter { /** * Formatter for deprecated options. */ - private Function<Option, String> deprecatedFormatFunc = DEFAULT_DEPRECATED_FORMAT; + private Function<Option, String> deprecatedFormatFunction = DEFAULT_DEPRECATED_FORMAT; /** * The output PrintWriter, defaults to wrapping {@link System#out}. @@ -96,7 +96,7 @@ public class HelpFormatter { @Override public HelpFormatter get() { - return new HelpFormatter(deprecatedFormatFunc, printStream, showSince); + return new HelpFormatter(deprecatedFormatFunction, printStream, showSince); } /** @@ -123,12 +123,12 @@ public class HelpFormatter { /** * Sets whether to show deprecated options. * - * @param showDeprecatedFunc Specify the format for the deprecated options. + * @param deprecatedFormatFunction Specify the format for the deprecated options. * @return {@code this} instance. * @since 1.8.0 */ - public Builder setShowDeprecated(final Function<Option, String> showDeprecatedFunc) { - this.deprecatedFormatFunc = showDeprecatedFunc; + public Builder setShowDeprecated(final Function<Option, String> deprecatedFormatFunction) { + this.deprecatedFormatFunction = deprecatedFormatFunction; return this; }
