Move more endpoints to singleton scope and remove providers

Ia2ac8cfcc moved some REST endpoints to singleton scope, but missed
to remove providers from these endpoints, where they get injected.

When a singleton injects another singleton, this is only an overhead
to inject it as a provider to singleton and not directly.

Change-Id: I6d6f361cc2c46440845ef13ccacb8ec4f28c9b36
This commit is contained in:
David Ostrovsky
2014-05-29 21:21:24 +02:00
parent b559de9a37
commit 2bea4028e8
41 changed files with 159 additions and 133 deletions

View File

@@ -27,11 +27,13 @@ import com.google.gerrit.server.patch.PatchListEntry;
import com.google.gerrit.server.patch.PatchListKey;
import com.google.gerrit.server.patch.PatchListNotAvailableException;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.eclipse.jgit.lib.ObjectId;
import java.util.Map;
@Singleton
public class FileInfoJson {
private final PatchListCache patchListCache;