SearchingChangeCacheImpl: Specify actual type in try-with-resource

Change-Id: Ie9f367a2788b2a1350452e465d6f141dfe4738a7
This commit is contained in:
David Pursehouse
2017-03-16 15:47:28 +09:00
parent 41924c6ae6
commit 0a163df02e

View File

@@ -30,6 +30,7 @@ import com.google.gerrit.server.cache.CacheModule;
import com.google.gerrit.server.index.change.ChangeField;
import com.google.gerrit.server.query.change.ChangeData;
import com.google.gerrit.server.query.change.InternalChangeQuery;
import com.google.gerrit.server.util.ManualRequestContext;
import com.google.gerrit.server.util.OneOffRequestContext;
import com.google.inject.Inject;
import com.google.inject.Provider;
@@ -144,7 +145,7 @@ public class SearchingChangeCacheImpl implements GitReferenceUpdatedListener {
@Override
public List<CachedChange> load(Project.NameKey key) throws Exception {
try (AutoCloseable ctx = requestContext.open()) {
try (ManualRequestContext ctx = requestContext.open()) {
List<ChangeData> cds =
queryProvider
.get()