Fix build errors caused by ProjectCache.checkedGet()
Change-Id: Ie76c0ed4b45d9e7aa6fcfab491ce812ac94ed687
This commit is contained in:
parent
13414f43fb
commit
ae107e173e
@ -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 =
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user