From 58dd2868485352de558121b7397e8a9ea2901f82 Mon Sep 17 00:00:00 2001 From: Dani Megert Date: Tue, 30 Oct 2012 15:55:14 +0100 Subject: [PATCH] Declare all thrown exceptions in Repository Bug 393155 Change-Id: If702f2e54b17e82890f016126ee7bde4bff4af1d Signed-off-by: Dani Megert Signed-off-by: Chris Aniszczyk --- org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 911b1f6a7c..10efb9f21a 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 * Copyright (C) 2006-2012, Shawn O. Pearce + * Copyright (C) 2012, Daniel Megert * 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); -- 2.39.5