Skip to content

Commit ab4fed2

Browse files
committed
Better parameter name
Better instance variable name
1 parent c9c933e commit ab4fed2

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
@@ -84,7 +84,7 @@ public static class Builder implements Supplier<HelpFormatter> {
8484
/**
8585
* Formatter for deprecated options.
8686
*/
87-
private Function<Option, String> deprecatedFormatFunc = DEFAULT_DEPRECATED_FORMAT;
87+
private Function<Option, String> deprecatedFormatFunction = DEFAULT_DEPRECATED_FORMAT;
8888

8989
/**
9090
* The output PrintWriter, defaults to wrapping {@link System#out}.
@@ -96,7 +96,7 @@ public static class Builder implements Supplier<HelpFormatter> {
9696

9797
@Override
9898
public HelpFormatter get() {
99-
return new HelpFormatter(deprecatedFormatFunc, printStream, showSince);
99+
return new HelpFormatter(deprecatedFormatFunction, printStream, showSince);
100100
}
101101

102102
/**
@@ -123,12 +123,12 @@ public Builder setShowDeprecated(final boolean useDefaultFormat) {
123123
/**
124124
* Sets whether to show deprecated options.
125125
*
126-
* @param showDeprecatedFunc Specify the format for the deprecated options.
126+
* @param deprecatedFormatFunction Specify the format for the deprecated options.
127127
* @return {@code this} instance.
128128
* @since 1.8.0
129129
*/
130-
public Builder setShowDeprecated(final Function<Option, String> showDeprecatedFunc) {
131-
this.deprecatedFormatFunc = showDeprecatedFunc;
130+
public Builder setShowDeprecated(final Function<Option, String> deprecatedFormatFunction) {
131+
this.deprecatedFormatFunction = deprecatedFormatFunction;
132132
return this;
133133
}
134134

0 commit comments

Comments
 (0)