summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDani Megert2012-10-30 10:55:14 (EDT)
committer Chris Aniszczyk2012-11-16 15:42:19 (EST)
commit58dd2868485352de558121b7397e8a9ea2901f82 (patch)
tree29f2cdbce4938c46e19915b68a78115dc00c2523
parent6abb1b37a19b868d4a933ba8d7ea1d6746db8bfa (diff)
downloadjgit-58dd2868485352de558121b7397e8a9ea2901f82.zip
jgit-58dd2868485352de558121b7397e8a9ea2901f82.tar.gz
jgit-58dd2868485352de558121b7397e8a9ea2901f82.tar.bz2
Declare all thrown exceptions in Repositoryrefs/changes/20/8420/3
Bug 393155 Change-Id: If702f2e54b17e82890f016126ee7bde4bff4af1d Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com> Signed-off-by: Chris Aniszczyk <zx@twitter.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 911b1f6..10efb9f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -3,6 +3,7 @@
* Copyright (C) 2008-2010, Google Inc.
* Copyright (C) 2006-2010, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2006-2012, Shawn O. Pearce <spearce@spearce.org>
+ * Copyright (C) 2012, Daniel Megert <daniel_megert@ch.ibm.com>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
@@ -377,7 +378,8 @@ public abstract class Repository {
* on serious errors
*/
public ObjectId resolve(final String revstr)
- throws AmbiguousObjectException, IOException {
+ throws AmbiguousObjectException, IncorrectObjectTypeException,
+ RevisionSyntaxException, IOException {
RevWalk rw = new RevWalk(this);
try {
Object resolved = resolve(rw, revstr);