(env: *mut JNIEnv, classname: &str)
| 72 | } |
| 73 | |
| 74 | pub(crate) fn find_class(env: *mut JNIEnv, classname: &str) -> errors::Result<jclass> { |
| 75 | unsafe { |
| 76 | let cstr = utils::to_c_string(classname); |
| 77 | let fc = (**env).v1_6.FindClass; |
| 78 | let jc = (fc)(env, cstr); |
| 79 | utils::drop_c_string(cstr); |
| 80 | Ok(jc) |
| 81 | } |
| 82 | } |
nothing calls this directly
no test coverage detected