summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-04-13 17:41:06 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-04-14 12:26:34 +0200
commit0e8f3a62346918ef32929d804e0cbcc29b2ff3c4 (patch)
tree909497905be7b8450ea0700145092cd1b4ab2b5b
parent32be70d209511ae756a1051180d5fb92f67ba1e5 (diff)
downloadjgit-0e8f3a62346918ef32929d804e0cbcc29b2ff3c4.tar.gz
jgit-0e8f3a62346918ef32929d804e0cbcc29b2ff3c4.zip
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
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java5
1 files changed, 4 insertions, 1 deletions
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 fa15841054..68f250da09 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