瀏覽代碼

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 年之前
父節點
當前提交
0e8f3a6234
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      org.eclipse.jgit/src/org/eclipse/jgit/util/io/SafeBufferedOutputStream.java

+ 4
- 1
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…
取消
儲存