diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-06-28 10:37:08 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-06-28 11:47:25 -0700 |
commit | 9ba7bd4df452a1d005fbf770141076e901ad61d6 (patch) | |
tree | 15b173ec10dec86a9387eee67cf762c8e0032117 /org.eclipse.jgit.iplog/src | |
parent | a45728d7a4fe1b83953ba38ec980caa6a3f1d3c4 (diff) | |
download | jgit-9ba7bd4df452a1d005fbf770141076e901ad61d6.tar.gz jgit-9ba7bd4df452a1d005fbf770141076e901ad61d6.zip |
Throw IncorrectObjectTypeException on bad type hints
If the type hint isn't OBJ_ANY and it doesn't match the actual type
observed from the object store, define the reader to throw back an
IncorrectObjectTypeException. This way the caller doesn't have to
perform this check itself before it evaluates the object data, and
we can simplify quite a few call sites.
Change-Id: I9f0dfa033857f439c94245361fcae515bc0a6533
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.iplog/src')
0 files changed, 0 insertions, 0 deletions