Fix build errors caused by ProjectCache.checkedGet()

Change-Id: Ie76c0ed4b45d9e7aa6fcfab491ce812ac94ed687
This commit is contained in:
Shawn Pearce 2013-05-10 09:45:49 -07:00
parent 13414f43fb
commit ae107e173e
3 changed files with 13 additions and 1 deletions

View File

@ -25,6 +25,8 @@ import com.google.gerrit.extensions.restapi.TopLevelResource;
import com.google.inject.Inject;
import com.google.inject.Provider;
import java.io.IOException;
public class ChildProjectsCollection implements
ChildCollection<ProjectResource, ChildProjectResource> {
private final Provider<ListChildProjects> list;
@ -48,7 +50,7 @@ public class ChildProjectsCollection implements
@Override
public ChildProjectResource parse(ProjectResource parent, IdString id)
throws ResourceNotFoundException {
throws ResourceNotFoundException, IOException {
ProjectResource p =
projectsCollection.get().parse(TopLevelResource.INSTANCE, id);
ProjectState pp =

View File

@ -95,6 +95,11 @@ public class GerritCommonTest extends PrologTestCase {
return allProjects;
}
@Override
public ProjectState checkedGet(Project.NameKey projectName) {
return get(projectName);
}
@Override
public void evict(Project p) {
throw new UnsupportedOperationException();

View File

@ -419,6 +419,11 @@ public class RefControlTest extends TestCase {
return all.get(projectName);
}
@Override
public ProjectState checkedGet(Project.NameKey projectName) {
return get(projectName);
}
@Override
public void evict(Project p) {
}