Skip to content

Commit 573b9e0

Browse files
committed
Javadoc
1 parent e55ee57 commit 573b9e0

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected Writer getWriter() throws IOException {
230230
* </p>
231231
*
232232
* @param bufferSize the buffer size.
233-
* @return this.
233+
* @return {@code this} instance.
234234
*/
235235
public B setBufferSize(final int bufferSize) {
236236
this.bufferSize = checkBufferSize(bufferSize > 0 ? bufferSize : bufferSizeDefault);
@@ -244,7 +244,7 @@ public B setBufferSize(final int bufferSize) {
244244
* </p>
245245
*
246246
* @param bufferSize the buffer size, null resets to the default.
247-
* @return this.
247+
* @return {@code this} instance.
248248
*/
249249
public B setBufferSize(final Integer bufferSize) {
250250
setBufferSize(bufferSize != null ? bufferSize : bufferSizeDefault);
@@ -270,7 +270,7 @@ public B setBufferSizeChecker(final IntUnaryOperator bufferSizeChecker) {
270270
* </p>
271271
*
272272
* @param bufferSizeDefault the buffer size, null resets to the default.
273-
* @return this.
273+
* @return {@code this} instance.
274274
*/
275275
protected B setBufferSizeDefault(final int bufferSizeDefault) {
276276
this.bufferSizeDefault = bufferSizeDefault;
@@ -282,7 +282,7 @@ protected B setBufferSizeDefault(final int bufferSizeDefault) {
282282
* exceeded, this methods throws an {@link IllegalArgumentException}.
283283
*
284284
* @param bufferSizeMax maximum buffer size checked by the buffer size checker.
285-
* @return this.
285+
* @return {@code this} instance.
286286
* @since 2.14.0
287287
*/
288288
public B setBufferSizeMax(final int bufferSizeMax) {
@@ -297,7 +297,7 @@ public B setBufferSizeMax(final int bufferSizeMax) {
297297
* </p>
298298
*
299299
* @param charset the Charset, null resets to the default.
300-
* @return this.
300+
* @return {@code this} instance.
301301
*/
302302
public B setCharset(final Charset charset) {
303303
this.charset = Charsets.toCharset(charset, charsetDefault);
@@ -311,7 +311,7 @@ public B setCharset(final Charset charset) {
311311
* </p>
312312
*
313313
* @param charset the Charset name, null resets to the default.
314-
* @return this.
314+
* @return {@code this} instance.
315315
*/
316316
public B setCharset(final String charset) {
317317
return setCharset(Charsets.toCharset(charset, charsetDefault));
@@ -324,7 +324,7 @@ public B setCharset(final String charset) {
324324
* </p>
325325
*
326326
* @param defaultCharset the Charset name, null resets to the default.
327-
* @return this.
327+
* @return {@code this} instance.
328328
*/
329329
protected B setCharsetDefault(final Charset defaultCharset) {
330330
this.charsetDefault = defaultCharset;
@@ -341,7 +341,7 @@ protected B setCharsetDefault(final Charset defaultCharset) {
341341
* </p>
342342
*
343343
* @param openOptions the OpenOption[] name, null resets to the default.
344-
* @return this.
344+
* @return {@code this} instance.
345345
* @since 2.13.0
346346
* @see #setInputStream(InputStream)
347347
* @see #setOutputStream(OutputStream)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ boolean isPropagateClose() {
117117
* </p>
118118
*
119119
* @param count The current number of bytes counted.
120-
* @return this.
120+
* @return {@code this} instance.
121121
*/
122122
public T setCount(final long count) {
123123
this.count = Math.max(0, count);
@@ -131,7 +131,7 @@ public T setCount(final long count) {
131131
* </p>
132132
*
133133
* @param maxCount The maximum number of bytes to return.
134-
* @return this.
134+
* @return {@code this} instance.
135135
*/
136136
public T setMaxCount(final long maxCount) {
137137
this.maxCount = Math.max(EOF, maxCount);
@@ -146,7 +146,7 @@ public T setMaxCount(final long maxCount) {
146146
*
147147
* @param propagateClose {@code true} if calling {@link #close()} propagates to the {@code close()} method of the underlying stream or {@code false} if
148148
* it does not.
149-
* @return this.
149+
* @return {@code this} instance.
150150
*/
151151
public T setPropagateClose(final boolean propagateClose) {
152152
this.propagateClose = propagateClose;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public ChecksumInputStream get() throws IOException {
149149
* Sets the Checksum.
150150
*
151151
* @param checksum the Checksum.
152-
* @return this.
152+
* @return {@code this} instance.
153153
*/
154154
public Builder setChecksum(final Checksum checksum) {
155155
this.checksum = checksum;
@@ -164,7 +164,7 @@ public Builder setChecksum(final Checksum checksum) {
164164
* </p>
165165
*
166166
* @param countThreshold the count threshold. A negative number means the threshold is unbound.
167-
* @return this.
167+
* @return {@code this} instance.
168168
*/
169169
public Builder setCountThreshold(final long countThreshold) {
170170
this.countThreshold = countThreshold;
@@ -175,7 +175,7 @@ public Builder setCountThreshold(final long countThreshold) {
175175
* The expected {@link Checksum} value once the stream is exhausted or the count threshold is reached.
176176
*
177177
* @param expectedChecksumValue The expected Checksum value.
178-
* @return this.
178+
* @return {@code this} instance.
179179
*/
180180
public Builder setExpectedChecksumValue(final long expectedChecksumValue) {
181181
this.expectedChecksumValue = expectedChecksumValue;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public Builder setBlockingQueue(final BlockingQueue<Integer> blockingQueue) {
116116
* Sets the polling timeout.
117117
*
118118
* @param timeout the polling timeout.
119-
* @return this.
119+
* @return {@code this} instance.
120120
*/
121121
public Builder setTimeout(final Duration timeout) {
122122
if (timeout != null && timeout.toNanos() < 0) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public Builder setStartThread(final boolean startThread) {
274274
* Sets the tailable.
275275
*
276276
* @param tailable the tailable.
277-
* @return this.
277+
* @return {@code this} instance.
278278
*/
279279
public Builder setTailable(final Tailable tailable) {
280280
this.tailable = Objects.requireNonNull(tailable, "tailable");

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public Builder setByteArray(final byte[] origin) {
118118
* Sets the length.
119119
*
120120
* @param length Must be greater or equal to 0.
121-
* @return this.
121+
* @return {@code this} instance.
122122
*/
123123
public Builder setLength(final int length) {
124124
if (length < 0) {
@@ -132,7 +132,7 @@ public Builder setLength(final int length) {
132132
* Sets the offset.
133133
*
134134
* @param offset Must be greater or equal to 0.
135-
* @return this.
135+
* @return {@code this} instance.
136136
*/
137137
public Builder setOffset(final int offset) {
138138
if (offset < 0) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public Builder setCharset(final String charset) {
172172
* Sets the HTTP content type.
173173
*
174174
* @param httpContentType the HTTP content type.
175-
* @return this.
175+
* @return {@code this} instance.
176176
*/
177177
public Builder setHttpContentType(final String httpContentType) {
178178
this.httpContentType = httpContentType;
@@ -183,7 +183,7 @@ public Builder setHttpContentType(final String httpContentType) {
183183
* Sets the lenient toggle.
184184
*
185185
* @param lenient the lenient toggle.
186-
* @return this.
186+
* @return {@code this} instance.
187187
*/
188188
public Builder setLenient(final boolean lenient) {
189189
this.lenient = lenient;

0 commit comments

Comments
 (0)