diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2014-08-03 04:51:12 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2014-08-03 04:51:12 -0400 |
commit | b397e7b6e02a3fa446f3f08aadfb97675c1af48e (patch) | |
tree | 3fe4bf5910cc1005b9da362db1a60536bddf727f /org.eclipse.jgit/src | |
parent | a4f560551d291266230b0f20401f62ab826b1315 (diff) | |
parent | d2fa3987a064574b0ead67acabbdb2bedb3315e0 (diff) | |
download | jgit-b397e7b6e02a3fa446f3f08aadfb97675c1af48e.tar.gz jgit-b397e7b6e02a3fa446f3f08aadfb97675c1af48e.zip |
Merge "Use bitcheck to check for presence of OPT_FULL option"
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java index c79a5cb71c..6d944fd4db 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java @@ -110,15 +110,10 @@ class PackBitmapIndexV1 extends BasePackBitmapIndex { // Read the options (2 bytes) final int opts = NB.decodeUInt16(scratch, 6); - switch (opts) { - case OPT_FULL: - // Bitmaps are self contained within this file. - break; - default: + if ((opts & OPT_FULL) == 0) throw new IOException(MessageFormat.format( JGitText.get().expectedGot, Integer.valueOf(OPT_FULL), Integer.valueOf(opts))); - } // Read the number of entries (1 int32) long numEntries = NB.decodeUInt32(scratch, 8); |