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

Function get_utils_class

rust/src/cache.rs:805–819  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

803}
804
805pub(crate) fn get_utils_class() -> errors::Result<jclass> {
806 get_cached!(
807 UTILS_CLASS,
808 {
809 let env = get_thread_local_env()?;
810 let c = tweaks::find_class(env, UTILS_CLASS_NAME)?;
811 if CLASS_CACHING_ENABLED {
812 jni_utils::create_global_ref_from_local_ref(c, env)?
813 } else {
814 c
815 }
816 },
817 set_utils_class
818 )
819}
820
821pub(crate) fn set_utils_exception_to_string_method(j: jmethodID) {
822 debug("Called set_utils_exception_to_string_method");

Callers 1

get_throwable_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected