Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected Builder() {
/**
* Returns this instance cast to {@code B}.
*
* @return this instance cast to {@code B}.
* @return {@code this} instance cast to {@code B}.
*/
@SuppressWarnings("unchecked")
protected B asThis() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public HelpFormatter get() {
* Sets the showSince flag.
*
* @param showSince the desired value of the showSince flag.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setShowSince(final boolean showSince) {
this.showSince = showSince;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public OptionFormatter get() {
*
* @param begin the beginning delimiter.
* @param end the ending delimiter.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setArgumentNameDelimiters(final String begin, final String end) {
this.argNameDelimiters[0] = Util.defaultValue(begin, "");
Expand All @@ -137,7 +137,7 @@ public Builder setDefaultArgName(final String name) {
* Specifies the function to construct the deprecated massage for the Option. Should include the description text if desired.
*
* @param deprecatedFormatFunction the function to specify the deprecated message for the option.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setDeprecatedFormatFunction(final Function<Option, String> deprecatedFormatFunction) {
this.deprecatedFormatFunction = deprecatedFormatFunction;
Expand Down Expand Up @@ -172,7 +172,7 @@ public Builder setOptArgSeparator(final String optArgSeparator) {
*
* @param begin the beginning delimiter.
* @param end the ending delimiter.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setOptionalDelimiters(final String begin, final String end) {
this.optionalDelimiters[0] = Util.defaultValue(begin, "");
Expand All @@ -184,7 +184,7 @@ public Builder setOptionalDelimiters(final String begin, final String end) {
* Specifies the short option prefix.
*
* @param optPrefix the prefix for short options.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setOptPrefix(final String optPrefix) {
this.optPrefix = Util.defaultValue(optPrefix, "");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/commons/cli/help/TextStyle.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public Builder setMinWidth(final int minWidth) {
* Sets whether the column can be made wider or to narrower width to fit constraints of the HelpAppendable and formatting.
*
* @param scalable Whether the text width can be adjusted.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setScalable(final boolean scalable) {
this.scalable = scalable;
Expand All @@ -211,7 +211,7 @@ public Builder setScalable(final boolean scalable) {
* Sets all properties from the given text style.
*
* @param style the source text style.
* @return this instance.
* @return {@code this} instance.
*/
public Builder setTextStyle(final TextStyle style) {
this.alignment = style.alignment;
Expand Down