Browse Source

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
tags/v2.0.0.201206130900-r
Robin Rosenberg 12 years ago
parent
commit
0e8f3a6234

+ 4
- 1
org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java View 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

Loading…
Cancel
Save