title: Recommendation with Nashorn depracated
body: <p>I am using a library to evaluate a boolean expression as a string.  With the library I get the following warning with Java 11:</p>
  
  <p><em>NashornScriptEngineFactory in jdk.nashorn.api.scripting has been deprecated and marked for removal</em></p>
  
  <p>However, I am a little unclear about this.  I am using the following code and I don't see Nashorn referenced in this code but yet the warning still persists.  </p>
  
  <p><code>ScriptEngineManager factory = new ScriptEngineManager();
  ScriptEngine engine = factory.getEngineByName("JavaScript");
  Boolean val = (Boolean) engine.eval(ruleString);</code></p>
  
  <p>My question is does this warning still apply to this piece of code?  Also, if it does, is there another alternative that I can use?</p>
  
  <p>Thanks in advance for the help.</p>