File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public CommandLine build() {
103103 * Sets the deprecated option handler.
104104 *
105105 * @param deprecatedHandler the deprecated option handler.
106- * @return this.
106+ * @return {@code this} instance .
107107 * @since 1.7.0
108108 */
109109 public Builder setDeprecatedHandler (final Consumer <Option > deprecatedHandler ) {
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public Builder setAllowPartialMatching(final boolean allowPartialMatching) {
110110 * Sets the deprecated option handler.
111111 *
112112 * @param deprecatedHandler the deprecated option handler.
113- * @return this.
113+ * @return {@code this} instance .
114114 * @since 1.7.0
115115 */
116116 public Builder setDeprecatedHandler (final Consumer <Option > deprecatedHandler ) {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public DeprecatedAttributes get() {
6464 * Sets the description.
6565 *
6666 * @param description the description.
67- * @return this.
67+ * @return {@code this} instance .
6868 */
6969 public Builder setDescription (final String description ) {
7070 this .description = description ;
@@ -75,7 +75,7 @@ public Builder setDescription(final String description) {
7575 * Whether this option is subject to removal in a future version.
7676 *
7777 * @param forRemoval whether this is subject to removal in a future version.
78- * @return this.
78+ * @return {@code this} instance .
7979 * @see <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Deprecated.html#forRemoval()">Deprecated.forRemoval</a>
8080 */
8181 public Builder setForRemoval (final boolean forRemoval ) {
@@ -87,7 +87,7 @@ public Builder setForRemoval(final boolean forRemoval) {
8787 * Sets the version in which the option became deprecated.
8888 *
8989 * @param since the version in which the option became deprecated.
90- * @return this.
90+ * @return {@code this} instance .
9191 */
9292 public Builder setSince (final String since ) {
9393 this .since = since ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public HelpFormatter get() {
9999 * Sets the output PrintWriter, defaults to wrapping {@link System#out}.
100100 *
101101 * @param printWriter the output PrintWriter, not null.
102- * @return this.
102+ * @return {@code this} instance .
103103 */
104104 public Builder setPrintWriter (final PrintWriter printWriter ) {
105105 this .printStream = Objects .requireNonNull (printWriter , "printWriter" );
@@ -110,7 +110,7 @@ public Builder setPrintWriter(final PrintWriter printWriter) {
110110 * Sets whether to show deprecated options.
111111 *
112112 * @param useDefaultFormat if {@code true} use the default format, otherwise clear the formatter.
113- * @return this.
113+ * @return {@code this} instance .
114114 */
115115 public Builder setShowDeprecated (final boolean useDefaultFormat ) {
116116 return setShowDeprecated (useDefaultFormat ? DEFAULT_DEPRECATED_FORMAT : null );
@@ -120,7 +120,7 @@ public Builder setShowDeprecated(final boolean useDefaultFormat) {
120120 * Sets whether to show deprecated options.
121121 *
122122 * @param showDeprecatedFunc Specify the format for the deprecated options.
123- * @return this.
123+ * @return {@code this} instance .
124124 * @since 1.8.0
125125 */
126126 public Builder setShowDeprecated (final Function <Option , String > showDeprecatedFunc ) {
You can’t perform that action at this time.
0 commit comments