Remove declarations of unthrown exceptions
Change-Id: Ia11fe13888f434c3e78384f19c2a59536d753342
diff --git a/java/com/google/gerrit/acceptance/AbstractDaemonTest.java b/java/com/google/gerrit/acceptance/AbstractDaemonTest.java
index 2fd515f..043e142 100644
--- a/java/com/google/gerrit/acceptance/AbstractDaemonTest.java
+++ b/java/com/google/gerrit/acceptance/AbstractDaemonTest.java
@@ -162,7 +162,6 @@
import java.util.regex.Pattern;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.errors.ConfigInvalidException;
-import org.eclipse.jgit.errors.RepositoryNotFoundException;
import org.eclipse.jgit.internal.storage.dfs.InMemoryRepository;
import org.eclipse.jgit.junit.TestRepository;
import org.eclipse.jgit.lib.Config;
@@ -991,8 +990,7 @@
.update();
}
- protected void grant(Project.NameKey project, String ref, String permission)
- throws RepositoryNotFoundException, IOException, ConfigInvalidException {
+ protected void grant(Project.NameKey project, String ref, String permission) {
projectOperations
.project(project)
.forUpdate()
@@ -1000,8 +998,7 @@
.update();
}
- protected void grant(Project.NameKey project, String ref, String permission, boolean force)
- throws RepositoryNotFoundException, IOException, ConfigInvalidException {
+ protected void grant(Project.NameKey project, String ref, String permission, boolean force) {
projectOperations
.project(project)
.forUpdate()
@@ -1014,8 +1011,7 @@
String ref,
String permission,
boolean force,
- AccountGroup.UUID groupUUID)
- throws RepositoryNotFoundException, IOException, ConfigInvalidException {
+ AccountGroup.UUID groupUUID) {
projectOperations
.project(project)
.forUpdate()
@@ -1030,8 +1026,7 @@
Project.NameKey project,
String ref,
AccountGroup.UUID groupUUID,
- boolean exclusive)
- throws RepositoryNotFoundException, IOException, ConfigInvalidException {
+ boolean exclusive) {
projectOperations
.project(project)
.forUpdate()
diff --git a/javatests/com/google/gerrit/acceptance/rest/account/ExternalIdIT.java b/javatests/com/google/gerrit/acceptance/rest/account/ExternalIdIT.java
index c2e2a11..72ae859 100644
--- a/javatests/com/google/gerrit/acceptance/rest/account/ExternalIdIT.java
+++ b/javatests/com/google/gerrit/acceptance/rest/account/ExternalIdIT.java
@@ -985,7 +985,7 @@
return info;
}
- private void allowPushOfExternalIds() throws IOException, ConfigInvalidException {
+ private void allowPushOfExternalIds() {
grant(allUsers, RefNames.REFS_EXTERNAL_IDS, Permission.READ);
grant(allUsers, RefNames.REFS_EXTERNAL_IDS, Permission.PUSH);
}