()
| 389 | } |
| 390 | |
| 391 | pub(crate) fn get_thread_local_env() -> errors::Result<*mut JNIEnv> { |
| 392 | match get_thread_local_env_opt() { |
| 393 | Some(env) => Ok(env), |
| 394 | None => Err(errors::J4RsError::JavaError("Could not find the JNIEnv in the thread local".to_string())), |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | pub(crate) fn set_jni_get_method_id(j: Option<JniGetMethodId>) -> Option<JniGetMethodId> { |
| 399 | debug("Called set_jni_get_method_id"); |
no test coverage detected