Use Inject/Singleton from com.google.inject instead of javax.inject
Change-Id: Ie56d25b712c7e8245f886768547d810c424b04d3
This commit is contained in:
@@ -52,6 +52,7 @@ import com.google.gerrit.server.project.NoSuchChangeException;
|
||||
import com.google.gerrit.server.project.ProjectCache;
|
||||
import com.google.gerrit.server.project.ProjectState;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
|
||||
import org.eclipse.jgit.diff.Edit;
|
||||
import org.eclipse.jgit.diff.ReplaceEdit;
|
||||
@@ -68,8 +69,6 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
public class GetDiff implements RestReadView<FileResource> {
|
||||
private static final ImmutableMap<Patch.ChangeType, ChangeType> CHANGE_TYPE =
|
||||
Maps.immutableEnumMap(
|
||||
|
||||
@@ -27,6 +27,7 @@ import com.google.gerrit.server.config.SitePaths;
|
||||
import com.google.gwtorm.server.OrmDuplicateKeyException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.eclipse.jgit.lib.Config;
|
||||
import org.slf4j.Logger;
|
||||
@@ -42,8 +43,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
|
||||
@Singleton
|
||||
public class H2AccountPatchReviewStore
|
||||
implements AccountPatchReviewStore, LifecycleListener {
|
||||
|
||||
Reference in New Issue
Block a user