|
|
@ -395,7 +395,11 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator { |
|
|
|
private ByteBuffer filterClean(byte[] src, int n) |
|
|
|
private ByteBuffer filterClean(byte[] src, int n) |
|
|
|
throws IOException { |
|
|
|
throws IOException { |
|
|
|
InputStream in = new ByteArrayInputStream(src); |
|
|
|
InputStream in = new ByteArrayInputStream(src); |
|
|
|
|
|
|
|
try { |
|
|
|
return IO.readWholeStream(filterClean(in), n); |
|
|
|
return IO.readWholeStream(filterClean(in), n); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
safeClose(in); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private InputStream filterClean(InputStream in) { |
|
|
|
private InputStream filterClean(InputStream in) { |
|
|
|