CommentsIT: Remove declaration of exception that is never thrown
Change-Id: I2d631bdc84d8334c2f53fc3a4909e306cbd775e4 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -64,7 +64,6 @@ import java.util.Optional;
|
|||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
|
||||||
import org.eclipse.jgit.lib.ObjectReader;
|
import org.eclipse.jgit.lib.ObjectReader;
|
||||||
import org.eclipse.jgit.lib.Ref;
|
import org.eclipse.jgit.lib.Ref;
|
||||||
import org.eclipse.jgit.lib.Repository;
|
import org.eclipse.jgit.lib.Repository;
|
||||||
@@ -861,8 +860,7 @@ public class CommentsIT extends AbstractDaemonTest {
|
|||||||
return comment;
|
return comment;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<RevCommit> getCommits(Change.Id changeId)
|
private List<RevCommit> getCommits(Change.Id changeId) throws IOException {
|
||||||
throws IOException, ConfigInvalidException {
|
|
||||||
try (Repository repo = repoManager.openRepository(project);
|
try (Repository repo = repoManager.openRepository(project);
|
||||||
RevWalk revWalk = new RevWalk(repo)) {
|
RevWalk revWalk = new RevWalk(repo)) {
|
||||||
Ref metaRef = repo.exactRef(RefNames.changeMetaRef(changeId));
|
Ref metaRef = repo.exactRef(RefNames.changeMetaRef(changeId));
|
||||||
|
|||||||
Reference in New Issue
Block a user