Use Inject/Singleton from com.google.inject instead of javax.inject

Change-Id: Ie56d25b712c7e8245f886768547d810c424b04d3
This commit is contained in:
David Pursehouse
2017-01-31 09:57:23 +09:00
parent 7059cbd8da
commit ca257852b8
2 changed files with 2 additions and 4 deletions

View File

@@ -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(

View File

@@ -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 {