]> source.dussan.org Git - jgit.git/commitdiff
Declare all thrown exceptions in Repository 20/8420/3
authorDani Megert <Daniel_Megert@ch.ibm.com>
Tue, 30 Oct 2012 14:55:14 +0000 (15:55 +0100)
committerChris Aniszczyk <zx@twitter.com>
Fri, 16 Nov 2012 20:42:19 +0000 (12:42 -0800)
Bug 393155
Change-Id: If702f2e54b17e82890f016126ee7bde4bff4af1d
Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com>
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

index 911b1f6a7c1fd2b905d73910cf0c5f153bcbe5fd..10efb9f21a0298048dbc4bc8dc6ae62c7cde2965 100644 (file)
@@ -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);