commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1545583 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/FastByteArrayOutputStream.java
Date Tue, 26 Nov 2013 09:44:11 GMT
Author: ebourg
Date: Tue Nov 26 09:44:11 2013
New Revision: 1545583

URL: http://svn.apache.org/r1545583
Log:
Made FastByteArrayOutputStream package private

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/FastByteArrayOutputStream.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/FastByteArrayOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/FastByteArrayOutputStream.java?rev=1545583&r1=1545582&r2=1545583&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/FastByteArrayOutputStream.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/FastByteArrayOutputStream.java
Tue Nov 26 09:44:11 2013
@@ -19,10 +19,11 @@ package org.apache.commons.imaging.commo
 import java.io.IOException;
 import java.io.OutputStream;
 
-/** Like ByteArrayOutputStream, but has some performance benefit,
-  * because it's not thread safe.
-  */
-public class FastByteArrayOutputStream extends OutputStream {
+/**
+ * Like ByteArrayOutputStream, but has some performance benefit,
+ * because it's not thread safe.
+ */
+class FastByteArrayOutputStream extends OutputStream {
     private final byte bytes[];
     private int count = 0;
 
@@ -33,8 +34,7 @@ public class FastByteArrayOutputStream e
     @Override
     public void write(final int value) throws IOException {
         if (count >= bytes.length) {
-            throw new IOException("Write exceeded expected length (" + count
-                    + ", " + bytes.length + ")");
+            throw new IOException("Write exceeded expected length (" + count + ", " + bytes.length
+ ")");
         }
 
         bytes[count] = (byte) value;



Mime
View raw message