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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user