aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2018-11-08 17:55:19 -0800
committerJonathan Nieder <jrn@google.com>2018-11-08 17:55:19 -0800
commitaeba0032003480dd821edc22fa4ab1a66192549f (patch)
treee5913887d14d16b42eae640cf1d8be9fd3c81b95
parent1385f4b3dacca2b30dc4f78967e831720618c782 (diff)
downloadjgit-aeba0032003480dd821edc22fa4ab1a66192549f.tar.gz
jgit-aeba0032003480dd821edc22fa4ab1a66192549f.zip
Simplify exception handling in RevWalk#iterator
MissingObjectException and IncorrectObjectTypeException are subclasses of IOException. Change-Id: Ib4e1f37ce1b0b08e69ba3375bbdb6ee82ee4f036 Signed-off-by: Jonathan Nieder <jrn@google.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java
index 4d555d2178..a42721afaf 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java
@@ -1356,10 +1356,6 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
final RevCommit first;
try {
first = RevWalk.this.next();
- } catch (MissingObjectException e) {
- throw new RevWalkException(e);
- } catch (IncorrectObjectTypeException e) {
- throw new RevWalkException(e);
} catch (IOException e) {
throw new RevWalkException(e);
}
@@ -1378,10 +1374,6 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
final RevCommit r = next;
next = RevWalk.this.next();
return r;
- } catch (MissingObjectException e) {
- throw new RevWalkException(e);
- } catch (IncorrectObjectTypeException e) {
- throw new RevWalkException(e);
} catch (IOException e) {
throw new RevWalkException(e);
}