Skip to content

Commit a478e88

Browse files
committed
Javadoc
1 parent 73349f6 commit a478e88

11 files changed

+24
-24
lines changed

src/main/java/org/apache/commons/io/build/AbstractSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public AbstractSupplier() {
140140
* (B) this
141141
* </pre>
142142
*
143-
* @return this instance typed as the subclass type {@code B}.
143+
* @return {@code this} instance typed as the subclass type {@code B}.
144144
*/
145145
@SuppressWarnings("unchecked")
146146
protected B asThis() {

src/main/java/org/apache/commons/io/file/CountingPathVisitor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ PathCounters getPathCounters() {
8080
* Sets how to filter directories.
8181
*
8282
* @param directoryFilter how to filter files.
83-
* @return this instance.
83+
* @return {@code this} instance.
8484
*/
8585
public B setDirectoryFilter(final PathFilter directoryFilter) {
8686
this.directoryFilter = directoryFilter != null ? directoryFilter : defaultDirectoryFilter();
@@ -91,7 +91,7 @@ public B setDirectoryFilter(final PathFilter directoryFilter) {
9191
* Sets how to transform directories, defaults to {@link UnaryOperator#identity()}.
9292
*
9393
* @param directoryTransformer how to filter files.
94-
* @return this instance.
94+
* @return {@code this} instance.
9595
*/
9696
public B setDirectoryPostTransformer(final UnaryOperator<Path> directoryTransformer) {
9797
this.directoryPostTransformer = directoryTransformer != null ? directoryTransformer : defaultDirectoryTransformer();
@@ -102,7 +102,7 @@ public B setDirectoryPostTransformer(final UnaryOperator<Path> directoryTransfor
102102
* Sets how to filter files.
103103
*
104104
* @param fileFilter how to filter files.
105-
* @return this instance.
105+
* @return {@code this} instance.
106106
*/
107107
public B setFileFilter(final PathFilter fileFilter) {
108108
this.fileFilter = fileFilter != null ? fileFilter : defaultFileFilter();
@@ -113,7 +113,7 @@ public B setFileFilter(final PathFilter fileFilter) {
113113
* Sets how to count path visits.
114114
*
115115
* @param pathCounters How to count path visits.
116-
* @return this instance.
116+
* @return {@code this} instance.
117117
*/
118118
public B setPathCounters(final PathCounters pathCounters) {
119119
this.pathCounters = pathCounters != null ? pathCounters : defaultPathCounters();

src/main/java/org/apache/commons/io/file/SimplePathVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ IOBiFunction<Path, IOException, FileVisitResult> getVisitFileFailedFunction() {
6262
* </p>
6363
*
6464
* @param visitFileFailedFunction the function to call on {@link #visitFileFailed(Path, IOException)}.
65-
* @return this instance.
65+
* @return {@code this} instance.
6666
*/
6767
public B setVisitFileFailedFunction(final IOBiFunction<Path, IOException, FileVisitResult> visitFileFailedFunction) {
6868
this.visitFileFailedFunction = visitFileFailedFunction;

src/main/java/org/apache/commons/io/input/BoundedInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public T setMaxCount(final long maxCount) {
164164
* </p>
165165
*
166166
* @param onMaxCount the {@link ProxyInputStream#afterRead(int)} behavior.
167-
* @return this instance.
167+
* @return {@code this} instance.
168168
* @since 2.18.0
169169
*/
170170
public T setOnMaxCount(final IOBiConsumer<Long, Long> onMaxCount) {

src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public BufferedFileChannelInputStream get() throws IOException {
115115
* </p>
116116
*
117117
* @param fileChannel the file channel.
118-
* @return this instance.
118+
* @return {@code this} instance.
119119
* @since 2.18.0
120120
*/
121121
public Builder setFileChannel(final FileChannel fileChannel) {

src/main/java/org/apache/commons/io/input/NullInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private int handleEof() throws IOException {
186186
/**
187187
* Initializes or re-initializes this instance for reuse.
188188
*
189-
* @return this instance.
189+
* @return {@code this} instance.
190190
* @since 2.17.0
191191
*/
192192
public NullInputStream init() {

src/main/java/org/apache/commons/io/input/ProxyInputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public IOIntConsumer getAfterRead() {
8888
* </p>
8989
*
9090
* @param afterRead the {@link ProxyInputStream#afterRead(int)} behavior.
91-
* @return this instance.
91+
* @return {@code this} instance.
9292
*/
9393
public B setAfterRead(final IOIntConsumer afterRead) {
9494
this.afterRead = afterRead;
@@ -370,7 +370,7 @@ public synchronized void reset() throws IOException {
370370
* Sets the underlying input stream.
371371
*
372372
* @param in The input stream to set in {@link java.io.FilterInputStream#in}.
373-
* @return this instance.
373+
* @return {@code this} instance.
374374
* @since 2.19.0
375375
*/
376376
public ProxyInputStream setReference(final InputStream in) {

src/main/java/org/apache/commons/io/input/ThrottledInputStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public ThrottledInputStream get() throws IOException {
130130
*
131131
* @param value the maximum bytes
132132
* @param chronoUnit a duration scale goal.
133-
* @return this instance.
133+
* @return {@code this} instance.
134134
* @throws IllegalArgumentException Thrown if maxBytesPerSecond &lt;= 0.
135135
* @since 2.19.0
136136
*/
@@ -153,7 +153,7 @@ public Builder setMaxBytes(final long value, final ChronoUnit chronoUnit) {
153153
*
154154
* @param value the maximum bytes
155155
* @param duration a duration goal.
156-
* @return this instance.
156+
* @return {@code this} instance.
157157
* @throws IllegalArgumentException Thrown if maxBytesPerSecond &lt;= 0.
158158
*/
159159
// Consider making public in the future
@@ -166,7 +166,7 @@ Builder setMaxBytes(final long value, final Duration duration) {
166166
* Sets the maximum bytes per second.
167167
*
168168
* @param maxBytesPerSecond the maximum bytes per second.
169-
* @return this instance.
169+
* @return {@code this} instance.
170170
* @throws IllegalArgumentException Thrown if maxBytesPerSecond &lt;= 0.
171171
*/
172172
private Builder setMaxBytesPerSecond(final double maxBytesPerSecond) {

src/main/java/org/apache/commons/io/output/AbstractByteArrayOutputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public AbstractByteArrayOutputStream() {
110110
/**
111111
* Returns this instance typed to {@code T}.
112112
*
113-
* @return this instance
113+
* @return {@code this} instance
114114
*/
115115
@SuppressWarnings("unchecked")
116116
protected T asThis() {
@@ -336,7 +336,7 @@ public void write(final byte b[]) {
336336
*
337337
* @param data The String to convert to bytes. not null.
338338
* @param charset The {@link Charset} o encode the {@code String}, null means the default encoding.
339-
* @return this instance.
339+
* @return {@code this} instance.
340340
* @since 2.19.0
341341
*/
342342
public T write(final CharSequence data, final Charset charset) {

src/main/java/org/apache/commons/io/output/ProxyOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected void handleIOException(final IOException e) throws IOException {
164164
* Sets the underlying output stream.
165165
*
166166
* @param out the underlying output stream.
167-
* @return this instance.
167+
* @return {@code this} instance.
168168
* @since 2.19.0
169169
*/
170170
public ProxyOutputStream setReference(final OutputStream out) {

0 commit comments

Comments
 (0)