Remove declarations of unthrown IOException

Change-Id: I528f42db1136022073a4e9cac368ea4cfcddd79f
This commit is contained in:
David Pursehouse
2019-04-19 17:21:18 +09:00
parent e31ef27060
commit da60dea284
10 changed files with 14 additions and 19 deletions

View File

@@ -29,7 +29,6 @@ import com.google.gerrit.reviewdb.client.Project;
import com.google.gerrit.reviewdb.client.RefNames;
import com.google.gerrit.server.project.ProjectCache;
import com.google.inject.Inject;
import java.io.IOException;
import java.util.Optional;
public class StalenessChecker {
@@ -48,7 +47,7 @@ public class StalenessChecker {
this.indexConfig = indexConfig;
}
public boolean isStale(Project.NameKey project) throws IOException {
public boolean isStale(Project.NameKey project) {
ProjectData projectData = projectCache.get(project).toProjectData();
ProjectIndex i = indexes.getSearchIndex();
if (i == null) {