From 0e8f3a62346918ef32929d804e0cbcc29b2ff3c4 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 13 Apr 2012 17:41:06 +0200 Subject: [PATCH] Fix constructor for SafeBufferedOutputStream 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/util/io/SafeBufferedOutputStream.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java index fa1584105..68f250da0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java @@ -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