Polishing

This commit is contained in:
Juergen Hoeller
2015-09-24 00:33:14 +02:00
parent c34a62e141
commit ebe128e940
3 changed files with 5 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ public abstract class StandardScriptUtils {
* @param engineName the name of the engine
* @return a corresponding ScriptEngine (never {@code null})
* @throws IllegalArgumentException if no matching engine has been found
* @throws IllegalStateException if no matching engine has been found or if
* @throws IllegalStateException if the desired engine failed to initialize
*/
public static ScriptEngine retrieveEngineByName(ScriptEngineManager scriptEngineManager, String engineName) {
ScriptEngine engine = scriptEngineManager.getEngineByName(engineName);