MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / set_jni_call_static_object_method

Function set_jni_call_static_object_method

rust/src/cache.rs:606–614  ·  view source on GitHub ↗
(
    j: Option<JniCallStaticObjectMethod>,
)

Source from the content-addressed store, hash-verified

604}
605
606pub(crate) fn set_jni_call_static_object_method(
607 j: Option<JniCallStaticObjectMethod>,
608) -> Option<JniCallStaticObjectMethod> {
609 debug("Called set_jni_call_static_object_method");
610 JNI_CALL_STATIC_OBJECT_METHOD.with(|opt| {
611 *opt.borrow_mut() = j;
612 });
613 get_jni_call_static_object_method()
614}
615
616pub(crate) fn get_jni_call_static_object_method() -> Option<JniCallStaticObjectMethod> {
617 JNI_CALL_STATIC_OBJECT_METHOD.with(|opt| *opt.borrow())

Callers 1

try_fromMethod · 0.85

Calls 2

debugFunction · 0.85

Tested by

no test coverage detected