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:
@@ -16,11 +16,12 @@
|
||||
package com.google.gerrit.server.config;
|
||||
|
||||
import com.google.gerrit.server.account.EmailExpander;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
|
||||
import org.eclipse.jgit.lib.Config;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
class EmailExpanderProvider implements Provider<EmailExpander> {
|
||||
private final EmailExpander expander;
|
||||
|
||||
|
Reference in New Issue
Block a user