]> source.dussan.org Git - jgit.git/commit
TreeWalk: Remove CorruptObjectException from addTree(AbstractTreeIterator) 79/64779/1
authorShawn Pearce <spearce@spearce.org>
Wed, 20 Jan 2016 15:41:08 +0000 (07:41 -0800)
committerShawn Pearce <spearce@spearce.org>
Wed, 20 Jan 2016 15:41:08 +0000 (07:41 -0800)
commit2262a794b48ea866d1de2a6a44b79accb8224a27
treeb6c6b7384a4f9314c39b038cbe98b1990bc2192a
parenta01d6c1e55093529aaddc54bb6082a818f0956c6
TreeWalk: Remove CorruptObjectException from addTree(AbstractTreeIterator)

This form of addTree() does not parse any objects and cannot throw the
declared checked exception.  Callers are being forced to try-catch
CorruptObjectException that cannot occur when the iterator instance
has already been constructed.

Change-Id: Id338035302903bab81569d1576eab063eee0885a
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java