Skip to content

Commit c9c933e

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

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
@@ -302,7 +302,7 @@ public static String getDescription(final Option option) {
302302
/**
303303
* Function to format the description for a deprecated option.
304304
*/
305-
private final Function<Option, String> deprecatedFormatFunc;
305+
private final Function<Option, String> deprecatedFormatFunction;
306306

307307
/**
308308
* Where to print help.
@@ -328,10 +328,10 @@ public HelpFormatter() {
328328
* Constructs a new instance.
329329
* @param printWriter TODO
330330
*/
331-
private HelpFormatter(final Function<Option, String> deprecatedFormatFunc, final PrintWriter printWriter, final boolean showSince) {
331+
private HelpFormatter(final Function<Option, String> deprecatedFormatFunction, final PrintWriter printWriter, final boolean showSince) {
332332
// TODO All other instance HelpFormatter instance variables.
333333
// Make HelpFormatter immutable for 2.0
334-
this.deprecatedFormatFunc = deprecatedFormatFunc;
334+
this.deprecatedFormatFunction = deprecatedFormatFunction;
335335
this.printWriter = printWriter;
336336
this.showSince = showSince;
337337
}
@@ -464,8 +464,8 @@ <A extends Appendable> A appendOptions(final A sb, final int width, final Option
464464
}
465465
optBuf.append(dpad);
466466

467-
if (deprecatedFormatFunc != null && option.isDeprecated()) {
468-
optBuf.append(deprecatedFormatFunc.apply(option).trim());
467+
if (deprecatedFormatFunction != null && option.isDeprecated()) {
468+
optBuf.append(deprecatedFormatFunction.apply(option).trim());
469469
} else if (option.getDescription() != null) {
470470
optBuf.append(option.getDescription());
471471
}

0 commit comments

Comments
 (0)