summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2010-10-29 10:47:26 -0400
committerCode Review <codereview-daemon@eclipse.org>2010-10-29 10:47:26 -0400
commit6bddae5775554a61d2d09740110a2ac206eda0d2 (patch)
tree927d41ed1f8aadf106f510c833bd4db4381ec42a
parenta8140e3c16fb01151b4c58014c481cdab86f1032 (diff)
parent96bea14c7bad229a65cd6f9dac0c33fd81306724 (diff)
downloadjgit-6bddae5775554a61d2d09740110a2ac206eda0d2.tar.gz
jgit-6bddae5775554a61d2d09740110a2ac206eda0d2.zip
Merge "Use readFully() instead of read()"
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
index 2bf0b96f6b..fef38ccac0 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
@@ -599,7 +599,7 @@ public class PackFile implements Iterable<PackIndex.MutableEntry> {
JGitText.get().packObjectCountMismatch, packCnt, idx.getObjectCount(), getPackFile()));
fd.seek(length - 20);
- fd.read(buf, 0, 20);
+ fd.readFully(buf, 0, 20);
if (!Arrays.equals(buf, packChecksum))
throw new PackMismatchException(MessageFormat.format(
JGitText.get().packObjectCountMismatch