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
stable-2.0
Robin Rosenberg 13 years ago
parent
commit
0e8f3a6234
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java

5
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

Loading…
Cancel
Save