diff options
author | Shawn Pearce <spearce@spearce.org> | 2016-01-20 22:08:23 -0800 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2016-01-20 22:08:23 -0800 |
commit | c6f9c47fda96ed698ff56546e0e8962ad3e8e601 (patch) | |
tree | 92dfc37089b811e8fd337a7332554afba1a4b5d7 /org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore | |
parent | 8fe9a8baf53ed5c45c697669808d04423702e496 (diff) | |
download | jgit-c6f9c47fda96ed698ff56546e0e8962ad3e8e601.tar.gz jgit-c6f9c47fda96ed698ff56546e0e8962ad3e8e601.zip |
Fix unused throws CorruptObjectException from addTree
2262a794b48ea removed throws CorruptObjectException, but was not
compiled under Eclipse and did not see errors generated by Eclipse.
Maven build silently ignored the unnecessary code.
Change-Id: I6e9014adcc604588e10e5963d13d0c6ef0e1c617
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreNodeTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreNodeTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreNodeTest.java index 5893d8c407..c026efcde3 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreNodeTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreNodeTest.java @@ -55,7 +55,6 @@ import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; -import org.eclipse.jgit.errors.CorruptObjectException; import org.eclipse.jgit.ignore.IgnoreNode.MatchResult; import org.eclipse.jgit.junit.RepositoryTestCase; import org.eclipse.jgit.lib.FileMode; @@ -509,7 +508,7 @@ public class IgnoreNodeTest extends RepositoryTestCase { .toString()); } - private void beginWalk() throws CorruptObjectException { + private void beginWalk() { walk = new TreeWalk(db); walk.addTree(new FileTreeIterator(db)); } |