This commit is contained in:
kunfei
2023-03-25 14:13:58 +08:00
parent e34df5aba5
commit a0e1011fd2
2 changed files with 2 additions and 2 deletions
@@ -92,7 +92,7 @@ internal class JavaAdapter private constructor(private val engine: Invocable) :
companion object {
@JvmStatic
@Throws(RhinoException::class)
fun init(cx: Context?, scope: Scriptable, sealed: Boolean) {
fun init(cx: Context, scope: Scriptable, sealed: Boolean) {
val topLevel = scope as RhinoTopLevel
val engine: Invocable = topLevel.scriptEngine
val obj = JavaAdapter(engine)
@@ -40,7 +40,7 @@ import java.security.AccessControlContext
* @since 1.6
*/
@Suppress("UNUSED_PARAMETER")
class RhinoTopLevel internal constructor(cx: Context?, val scriptEngine: RhinoScriptEngine) :
class RhinoTopLevel(cx: Context, val scriptEngine: RhinoScriptEngine) :
ImporterTopLevel(cx, System.getSecurityManager() != null) {
init {