From 2ad2a53d255cf25acc73da72395102ce46a77059 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 4 Jun 2015 16:21:58 -0400 Subject: [PATCH] Don't use shaded APIs --- .../plugin/analysis/smartcn/AnalysisSmartChinesePlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/plugin/analysis/smartcn/AnalysisSmartChinesePlugin.java b/src/main/java/org/elasticsearch/plugin/analysis/smartcn/AnalysisSmartChinesePlugin.java index 6e39e194b56..08759e284c2 100644 --- a/src/main/java/org/elasticsearch/plugin/analysis/smartcn/AnalysisSmartChinesePlugin.java +++ b/src/main/java/org/elasticsearch/plugin/analysis/smartcn/AnalysisSmartChinesePlugin.java @@ -19,13 +19,13 @@ package org.elasticsearch.plugin.analysis.smartcn; -import org.elasticsearch.common.collect.ImmutableList; import org.elasticsearch.common.inject.Module; import org.elasticsearch.index.analysis.AnalysisModule; import org.elasticsearch.index.analysis.SmartChineseAnalysisBinderProcessor; import org.elasticsearch.indices.analysis.smartcn.SmartChineseIndicesAnalysisModule; import org.elasticsearch.plugins.AbstractPlugin; +import java.util.ArrayList; import java.util.Collection; /** @@ -45,7 +45,9 @@ public class AnalysisSmartChinesePlugin extends AbstractPlugin { @Override public Collection> modules() { - return ImmutableList.>of(SmartChineseIndicesAnalysisModule.class); + Collection> classes = new ArrayList<>(); + classes.add(SmartChineseIndicesAnalysisModule.class); + return classes; } public void onModule(AnalysisModule module) {