@Test void getDefaultScriptEngineManager() { ScriptEngineManager manager = ScriptEngineUtils.getDefaultScriptEngineManager(); ScriptEngineManager anotherManager = ScriptEngineUtils.getDefaultScriptEngineManager(); Assertions.assertNotNull(manager); Assertions.assertSame(manager, anotherManager); }
public static ScriptEngineManager getDefaultScriptEngineManager() { if (scriptEngineManager == null) { scriptEngineManager = new ScriptEngineManager(); } return scriptEngineManager; }
ScriptEngineUtils { public static ScriptEngineManager getDefaultScriptEngineManager() { if (scriptEngineManager == null) { scriptEngineManager = new ScriptEngineManager(); } return scriptEngineManager; } }
ScriptEngineUtils { public static ScriptEngineManager getDefaultScriptEngineManager() { if (scriptEngineManager == null) { scriptEngineManager = new ScriptEngineManager(); } return scriptEngineManager; } private  ScriptEngineUtils(); }
ScriptEngineUtils { public static ScriptEngineManager getDefaultScriptEngineManager() { if (scriptEngineManager == null) { scriptEngineManager = new ScriptEngineManager(); } return scriptEngineManager; } private  ScriptEngineUtils(); static ScriptEngineManager getDefaultScriptEngineManager(); }
ScriptEngineUtils { public static ScriptEngineManager getDefaultScriptEngineManager() { if (scriptEngineManager == null) { scriptEngineManager = new ScriptEngineManager(); } return scriptEngineManager; } private  ScriptEngineUtils(); static ScriptEngineManager getDefaultScriptEngineManager();  }