From 1fd0521a337fe2918213efd36443cb5fefd5c04e Mon Sep 17 00:00:00 2001 From: David Pilato Date: Sat, 28 Feb 2015 13:44:02 +0100 Subject: [PATCH] Remove component settings from AbstractComponent Related to elasticsearch/elasticsearch#9919 Closes #35. --- .../script/javascript/JavaScriptScriptEngineService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/script/javascript/JavaScriptScriptEngineService.java b/src/main/java/org/elasticsearch/script/javascript/JavaScriptScriptEngineService.java index 5fdf851a13e..83fb23ded53 100644 --- a/src/main/java/org/elasticsearch/script/javascript/JavaScriptScriptEngineService.java +++ b/src/main/java/org/elasticsearch/script/javascript/JavaScriptScriptEngineService.java @@ -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 {