Skip to content

Commit 6f73301

Browse files
committed
Javadoc
1 parent e047c33 commit 6f73301

4 files changed

Lines changed: 22 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ public abstract class FilterHelpAppendable implements HelpAppendable {
3939
protected final Appendable output;
4040

4141
/**
42-
* Constructs an instance using the provided Appendable instance.
42+
* Constructs an appendable filter built on top of the specified underlying appendable.
4343
*
44-
* @param output the Appendable instance to write to.
44+
* @param output the underlying appendable to be assigned to the field {@code this.output} for later use, or {@code null} if this instance is to be created
45+
* without an underlying stream.
4546
*/
4647
protected FilterHelpAppendable(final Appendable output) {
4748
this.output = output;

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ public static int findWrapPos(final CharSequence text, final int width, final in
115115
private final TextStyle.Builder styleBuilder;
116116

117117
/**
118-
* Construct from an output.
119-
* @param output the Appendable to write the output to.
118+
* Constructs an appendable filter built on top of the specified underlying appendable.
119+
*
120+
* @param output the underlying appendable to be assigned to the field {@code this.output} for later use, or {@code null} if this instance is to be created
121+
* without an underlying stream.
120122
*/
121123
public TextHelpAppendable(final Appendable output) {
122124
super(output);

src/test/java/org/apache/commons/example/cli/AptHelpAppendable.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ static String filledString(final int len, final char fillChar) {
6565
return new String(padding);
6666
}
6767

68+
/**
69+
* Constructs an appendable filter built on top of the specified underlying appendable.
70+
*
71+
* @param output the underlying appendable to be assigned to the field {@code this.output} for later use, or {@code null} if this instance is to be created
72+
* without an underlying stream.
73+
*/
6874
public AptHelpAppendable(final Appendable output) {
6975
super(output);
7076
}

src/test/java/org/apache/commons/example/cli/XhtmlHelpAppendable.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,17 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2727
import org.apache.commons.lang3.StringUtils;
2828
import org.apache.commons.text.StringEscapeUtils;
2929

30-
/** An example XML helpAppendable */
30+
/**
31+
* A class to write XHTML formatted text.
32+
*/
3133
public class XhtmlHelpAppendable extends FilterHelpAppendable {
3234

35+
/**
36+
* Constructs an appendable filter built on top of the specified underlying appendable.
37+
*
38+
* @param output the underlying appendable to be assigned to the field {@code this.output} for later use, or {@code null} if this instance is to be created
39+
* without an underlying stream.
40+
*/
3341
public XhtmlHelpAppendable(final Appendable output) {
3442
super(output);
3543
}

0 commit comments

Comments
 (0)