summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2013-04-18 21:55:35 +0200
committerChris Aniszczyk <zx@twitter.com>2013-04-18 14:58:51 -0500
commit78fca8a099bd2efc88eb44a0b491dd8aecc222b0 (patch)
tree61bb9377fff13fd82622a5becc944da827a8454c /org.eclipse.jgit
parentfa1bc6abb76cdd0abfe536d838035f94c3dfaeeb (diff)
downloadjgit-78fca8a099bd2efc88eb44a0b491dd8aecc222b0.tar.gz
jgit-78fca8a099bd2efc88eb44a0b491dd8aecc222b0.zip
Improve test coverage of AutoCRLF(In|Out)putStream
Bug: 405672 Change-Id: I3894e98617fcee16dc2ac9853c203c62eb30c3ab Signed-off-by: Chris Aniszczyk <zx@twitter.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFInputStream.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFInputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFInputStream.java
index 2a353a58b9..7c77a24266 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFInputStream.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFInputStream.java
@@ -58,9 +58,12 @@ import org.eclipse.jgit.diff.RawText;
* of binary files, canonicalization is turned off (for the complete file).
*/
public class AutoCRLFInputStream extends InputStream {
+
+ static final int BUFFER_SIZE = 8096;
+
private final byte[] single = new byte[1];
- private final byte[] buf = new byte[8096];
+ private final byte[] buf = new byte[BUFFER_SIZE];
private final InputStream in;