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 2020/05/24 17:13:53 UTC

[commons-io] branch master updated: Reuse constant, normalize spelling.

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


The following commit(s) were added to refs/heads/master by this push:
     new 22df666  Reuse constant, normalize spelling.
22df666 is described below

commit 22df66672a8f40e64d192ec8a43bfa8409fec36b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 24 13:13:49 2020 -0400

    Reuse constant, normalize spelling.
---
 .../java/org/apache/commons/io/output/ByteArrayOutputStream.java    | 6 ++----
 .../commons/io/output/UnsynchronizedByteArrayOutputStream.java      | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/output/ByteArrayOutputStream.java b/src/main/java/org/apache/commons/io/output/ByteArrayOutputStream.java
index b437963..89f0557 100644
--- a/src/main/java/org/apache/commons/io/output/ByteArrayOutputStream.java
+++ b/src/main/java/org/apache/commons/io/output/ByteArrayOutputStream.java
@@ -21,9 +21,7 @@ import java.io.InputStream;
 import java.io.OutputStream;
 
 /**
- * Implements a ThreadSafe version of
- * {@link AbstractByteArrayOutputStream} using instance
- * synchronisation.
+ * Implements a ThreadSafe version of {@link AbstractByteArrayOutputStream} using instance synchronization.
  */
 //@ThreadSafe
 public class ByteArrayOutputStream extends AbstractByteArrayOutputStream {
@@ -121,7 +119,7 @@ public class ByteArrayOutputStream extends AbstractByteArrayOutputStream {
      */
     public static InputStream toBufferedInputStream(final InputStream input)
             throws IOException {
-        return toBufferedInputStream(input, 1024);
+        return toBufferedInputStream(input, DEFAULT_SIZE);
     }
 
     /**
diff --git a/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java b/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
index 60c206d..b247e1e 100644
--- a/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
+++ b/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java
@@ -119,7 +119,7 @@ public final class UnsynchronizedByteArrayOutputStream extends AbstractByteArray
      */
     public static InputStream toBufferedInputStream(final InputStream input)
             throws IOException {
-        return toBufferedInputStream(input, 1024);
+        return toBufferedInputStream(input, DEFAULT_SIZE);
     }
 
     /**