You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/04/13 15:10:48 UTC
[commons-io] 02/03: Inline
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit e75b97347d00d526e4486817a84fccde89846bcb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Apr 12 12:57:17 2023 -0400
Inline
---
.../java/org/apache/commons/io/output/ChunkedOutputStream.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/output/ChunkedOutputStream.java b/src/main/java/org/apache/commons/io/output/ChunkedOutputStream.java
index cb8be00d..9b8a2fb1 100644
--- a/src/main/java/org/apache/commons/io/output/ChunkedOutputStream.java
+++ b/src/main/java/org/apache/commons/io/output/ChunkedOutputStream.java
@@ -31,23 +31,18 @@ import org.apache.commons.io.IOUtils;
*/
public class ChunkedOutputStream extends FilterOutputStream {
- /**
- * The default chunk size to use, i.e. {@value} bytes.
- */
- private static final int DEFAULT_CHUNK_SIZE = IOUtils.DEFAULT_BUFFER_SIZE;
-
/**
* The maximum chunk size to us when writing data arrays
*/
private final int chunkSize;
/**
- * Creates a new stream that uses a chunk size of {@link #DEFAULT_CHUNK_SIZE}.
+ * Creates a new stream that uses a chunk size of {@link IOUtils#DEFAULT_BUFFER_SIZE}.
*
* @param stream the stream to wrap
*/
public ChunkedOutputStream(final OutputStream stream) {
- this(stream, DEFAULT_CHUNK_SIZE);
+ this(stream, IOUtils.DEFAULT_BUFFER_SIZE);
}
/**