diff --git a/api/src/main/java/io/druid/js/JavaScriptConfig.java b/api/src/main/java/io/druid/js/JavaScriptConfig.java index 7dc6bb1b2fb..e97f19b1a8a 100644 --- a/api/src/main/java/io/druid/js/JavaScriptConfig.java +++ b/api/src/main/java/io/druid/js/JavaScriptConfig.java @@ -35,16 +35,14 @@ public class JavaScriptConfig private static final JavaScriptConfig ENABLED_INSTANCE = new JavaScriptConfig(true); @JsonProperty - private boolean enabled = false; + private final boolean enabled; @JsonCreator public JavaScriptConfig( - @JsonProperty("enabled") Boolean enabled + @JsonProperty("enabled") boolean enabled ) { - if (enabled != null) { - this.enabled = enabled.booleanValue(); - } + this.enabled = enabled; } public boolean isEnabled()