Remove component settings from AbstractComponent

Related to elasticsearch/elasticsearch#9919

Closes #35.
This commit is contained in:
David Pilato 2015-02-28 13:44:02 +01:00
parent bbf1375c98
commit 1fd0521a33
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class JavaScriptScriptEngineService extends AbstractComponent implements
public JavaScriptScriptEngineService(Settings settings) {
super(settings);
this.optimizationLevel = componentSettings.getAsInt("optimization_level", 1);
this.optimizationLevel = settings.getAsInt("script.javascript.optimization_level", 1);
Context ctx = Context.enter();
try {