Skip to content

Commit 13d7f9c

Browse files
committed
Javadoc
1 parent c03cec9 commit 13d7f9c

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected String getOptionGroupSeparator() {
122122
* Sets the comparator to use for sorting options. If set to {@code null} no sorting is performed.
123123
*
124124
* @param comparator The comparator to use for sorting options.
125-
* @return this
125+
* @return {@code this} instance.
126126
*/
127127
public B setComparator(final Comparator<Option> comparator) {
128128
this.comparator = comparator;
@@ -133,7 +133,7 @@ public B setComparator(final Comparator<Option> comparator) {
133133
* Sets the {@link HelpAppendable}.
134134
*
135135
* @param helpAppendable the {@link HelpAppendable} to use.
136-
* @return this
136+
* @return {@code this} instance.
137137
*/
138138
public B setHelpAppendable(final HelpAppendable helpAppendable) {
139139
this.helpAppendable = helpAppendable != null ? helpAppendable : TextHelpAppendable.systemOut();
@@ -144,7 +144,7 @@ public B setHelpAppendable(final HelpAppendable helpAppendable) {
144144
* Sets the {@link OptionFormatter.Builder}.
145145
*
146146
* @param optionFormatBuilder the {@link OptionFormatter.Builder} to use.
147-
* @return this
147+
* @return {@code this} instance.
148148
*/
149149
public B setOptionFormatBuilder(final OptionFormatter.Builder optionFormatBuilder) {
150150
this.optionFormatBuilder = optionFormatBuilder != null ? optionFormatBuilder : OptionFormatter.builder();
@@ -155,7 +155,7 @@ public B setOptionFormatBuilder(final OptionFormatter.Builder optionFormatBuilde
155155
* Sets the OptionGroup separator. Normally " | " or something similar to denote that only one option may be chosen.
156156
*
157157
* @param optionGroupSeparator the string to separate option group elements with.
158-
* @return this
158+
* @return {@code this} instance.
159159
*/
160160
public B setOptionGroupSeparator(final String optionGroupSeparator) {
161161
this.optionGroupSeparator = Util.defaultValue(optionGroupSeparator, "");

src/main/java/org/apache/commons/cli/help/OptionFormatter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Builder setArgumentNameDelimiters(final String begin, final String end) {
126126
* Sets the default argument name.
127127
*
128128
* @param name the new value of default argument name.
129-
* @return this
129+
* @return {@code this} instance.
130130
*/
131131
public Builder setDefaultArgName(final String name) {
132132
this.defaultArgName = Util.defaultValue(name, DEFAULT_ARG_NAME);
@@ -148,7 +148,7 @@ public Builder setDeprecatedFormatFunction(final Function<Option, String> deprec
148148
* Sets the long option prefix.
149149
*
150150
* @param prefix prefix for long options.
151-
* @return this
151+
* @return {@code this} instance.
152152
*/
153153
public Builder setLongOptPrefix(final String prefix) {
154154
this.longOptPrefix = Util.defaultValue(prefix, "");
@@ -159,7 +159,7 @@ public Builder setLongOptPrefix(final String prefix) {
159159
* Sets the separator displayed between a options and the argument name. Typically ' ' or '='.
160160
*
161161
* @param optArgSeparator the separator.
162-
* @return this
162+
* @return {@code this} instance.
163163
* @since 1.3
164164
*/
165165
public Builder setOptArgSeparator(final String optArgSeparator) {
@@ -195,7 +195,7 @@ public Builder setOptPrefix(final String optPrefix) {
195195
* Sets the separator displayed between a long option and short options. Typically ',' or ' '.
196196
*
197197
* @param optSeparator the separator.
198-
* @return this
198+
* @return {@code this} instance.
199199
* @since 1.3
200200
*/
201201
public Builder setOptSeparator(final String optSeparator) {
@@ -207,7 +207,7 @@ public Builder setOptSeparator(final String optSeparator) {
207207
* Specifies the function to convert an {@link OptionFormatter} into the syntax format for the option.
208208
*
209209
* @param syntaxFormatFunction The function to convert an {@link OptionFormatter} into the syntax format for the option.
210-
* @return this
210+
* @return {@code this} instance.
211211
*/
212212
public Builder setSyntaxFormatFunction(final BiFunction<OptionFormatter, Boolean, String> syntaxFormatFunction) {
213213
this.syntaxFormatFunction = syntaxFormatFunction;

src/main/java/org/apache/commons/cli/help/TextStyle.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public boolean isScalable() {
145145
* Sets the alignment.
146146
*
147147
* @param alignment the desired alignment.
148-
* @return this
148+
* @return {@code this} instance.
149149
*/
150150
public Builder setAlignment(final Alignment alignment) {
151151
this.alignment = alignment;
@@ -156,7 +156,7 @@ public Builder setAlignment(final Alignment alignment) {
156156
* Sets the indent value.
157157
*
158158
* @param indent the new indent value.
159-
* @return this
159+
* @return {@code this} instance.
160160
*/
161161
public Builder setIndent(final int indent) {
162162
this.indent = indent;
@@ -167,7 +167,7 @@ public Builder setIndent(final int indent) {
167167
* Sets the left padding.
168168
*
169169
* @param leftPad the new left padding.
170-
* @return this
170+
* @return {@code this} instance.
171171
*/
172172
public Builder setLeftPad(final int leftPad) {
173173
this.leftPad = leftPad;
@@ -178,7 +178,7 @@ public Builder setLeftPad(final int leftPad) {
178178
* Sets the currently specified minimum width.
179179
*
180180
* @param maxWidth The currently specified maximum width.
181-
* @return this
181+
* @return {@code this} instance.
182182
*/
183183
public Builder setMaxWidth(final int maxWidth) {
184184
this.maxWidth = maxWidth;
@@ -189,7 +189,7 @@ public Builder setMaxWidth(final int maxWidth) {
189189
* Sets the currently specified minimum width.
190190
*
191191
* @param minWidth The currently specified minimum width.
192-
* @return this
192+
* @return {@code this} instance.
193193
*/
194194
public Builder setMinWidth(final int minWidth) {
195195
this.minWidth = minWidth;

0 commit comments

Comments
 (0)