Use javax.inject.Inject instead of com.google.inject.Inject

The Guice team is discouraging use of its specific annotation where
possible, to increase JSR330 compliance.

Leave optional injection alone for now, which needs to be manually
replaced with OptionalBinder.

Change-Id: I4f53a518ba6f36fd67af12f3540dc44cbad07ff8
This commit is contained in:
Dave Borowitz
2014-09-29 16:33:00 -07:00
parent ca48514228
commit 5db3bba3e2
638 changed files with 1210 additions and 638 deletions

View File

@@ -37,7 +37,6 @@ import com.google.gerrit.server.project.ProjectCache;
import com.google.gerrit.server.project.ProjectState;
import com.google.gerrit.server.query.change.ChangeData;
import com.google.gwtorm.server.OrmException;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.eclipse.jgit.lib.ObjectId;
@@ -50,6 +49,8 @@ import java.util.NavigableSet;
import java.util.SortedSet;
import java.util.TreeMap;
import javax.inject.Inject;
/**
* Copies approvals between patch sets.
* <p>