]> source.dussan.org Git - jgit.git/commitdiff
Fix constructor for SafeBufferedOutputStream 83/5583/2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 13 Apr 2012 15:41:06 +0000 (17:41 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 14 Apr 2012 10:26:34 +0000 (12:26 +0200)
The size shoould be passed to BufferedOutputStream's constructor.
All callers seem to use the default, but that could change.

Change-Id: I874afee6a9114698805e36813781547e6aa328a5

org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java

index fa1584105491a375f411f60f4ce7e7fd60cc107b..68f250da09775b07c43fdb9f28e983f66e32d85e 100644 (file)
@@ -60,6 +60,7 @@ public class SafeBufferedOutputStream extends BufferedOutputStream {
        /**
         * @see BufferedOutputStream#BufferedOutputStream(OutputStream)
         * @param out
+        *            underlying output stream
         */
        public SafeBufferedOutputStream(OutputStream out) {
                super(out);
@@ -68,10 +69,12 @@ public class SafeBufferedOutputStream extends BufferedOutputStream {
        /**
         * @see BufferedOutputStream#BufferedOutputStream(OutputStream, int)
         * @param out
+        *            underlying output stream
         * @param size
+        *            buffer size
         */
        public SafeBufferedOutputStream(OutputStream out, int size) {
-               super(out);
+               super(out, size);
        }
 
        @Override