Remove injection annotations from constructor in AbstractElasticIndex
This constructor is not called by Guice. Change-Id: Ida5248659bdc112f6e171759eec780e591989b5f
This commit is contained in:
@@ -27,8 +27,6 @@ import com.google.gerrit.server.index.Index;
|
|||||||
import com.google.gerrit.server.index.IndexUtils;
|
import com.google.gerrit.server.index.IndexUtils;
|
||||||
import com.google.gerrit.server.index.Schema;
|
import com.google.gerrit.server.index.Schema;
|
||||||
import com.google.gerrit.server.index.Schema.Values;
|
import com.google.gerrit.server.index.Schema.Values;
|
||||||
import com.google.inject.Inject;
|
|
||||||
import com.google.inject.assistedinject.Assisted;
|
|
||||||
|
|
||||||
import org.eclipse.jgit.lib.Config;
|
import org.eclipse.jgit.lib.Config;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
@@ -60,11 +58,10 @@ abstract class AbstractElasticIndex<K, V> implements Index<K, V> {
|
|||||||
protected final JestHttpClient client;
|
protected final JestHttpClient client;
|
||||||
|
|
||||||
|
|
||||||
@Inject
|
|
||||||
AbstractElasticIndex(@GerritServerConfig Config cfg,
|
AbstractElasticIndex(@GerritServerConfig Config cfg,
|
||||||
FillArgs fillArgs,
|
FillArgs fillArgs,
|
||||||
SitePaths sitePaths,
|
SitePaths sitePaths,
|
||||||
@Assisted Schema<V> schema) {
|
Schema<V> schema) {
|
||||||
this.fillArgs = fillArgs;
|
this.fillArgs = fillArgs;
|
||||||
this.sitePaths = sitePaths;
|
this.sitePaths = sitePaths;
|
||||||
this.schema = schema;
|
this.schema = schema;
|
||||||
|
|||||||
Reference in New Issue
Block a user