(env: *mut JNIEnv, classname: &str)
| 37 | } |
| 38 | |
| 39 | pub(crate) fn find_class(env: *mut JNIEnv, classname: &str) -> errors::Result<jclass> { |
| 40 | unsafe { |
| 41 | let cstr = utils::to_c_string(classname); |
| 42 | let fc = (**env).v1_6.FindClass; |
| 43 | let jc = (fc)(env, cstr); |
| 44 | utils::drop_c_string(cstr); |
| 45 | Ok(jc) |
| 46 | } |
| 47 | } |
nothing calls this directly
no test coverage detected