Don't use shaded APIs

This commit is contained in:
Robert Muir 2015-06-04 16:23:50 -04:00
parent c1ad335d15
commit a52b8e6220
1 changed files with 4 additions and 3 deletions

View File

@ -19,14 +19,13 @@
package org.elasticsearch.plugin.analysis.stempel;
import org.elasticsearch.common.collect.ImmutableList;
import org.elasticsearch.common.inject.Module;
import org.elasticsearch.index.analysis.AnalysisModule;
import org.elasticsearch.index.analysis.pl.PolishAnalysisBinderProcessor;
import org.elasticsearch.indices.analysis.pl.PolishIndicesAnalysisModule;
import org.elasticsearch.plugins.AbstractPlugin;
import java.util.Collection;
import java.util.*;
/**
*
@ -45,7 +44,9 @@ public class AnalysisStempelPlugin extends AbstractPlugin {
@Override
public Collection<Class<? extends Module>> modules() {
return ImmutableList.<Class<? extends Module>>of(PolishIndicesAnalysisModule.class);
Collection<Class<? extends Module>> classes = new ArrayList<>();
classes.add(PolishIndicesAnalysisModule.class);
return classes;
}
public void onModule(AnalysisModule module) {