(jni_env: *mut JNIEnv)
| 797 | return Result::Ok((class, method)); |
| 798 | } |
| 799 | unsafe fn prim_box_meths(jni_env: *mut JNIEnv) -> Result<PrimitiveBoxMethods, String> { |
| 800 | return Result::Ok(PrimitiveBoxMethods { |
| 801 | boolean: method_ref(jni_env, "java/lang/Boolean", "(Z)Ljava/lang/Boolean;")?, |
| 802 | byte: method_ref(jni_env, "java/lang/Byte", "(B)Ljava/lang/Byte;")?, |
| 803 | char: method_ref(jni_env, "java/lang/Character", "(C)Ljava/lang/Character;")?, |
| 804 | short: method_ref(jni_env, "java/lang/Short", "(S)Ljava/lang/Short;")?, |
| 805 | int: method_ref(jni_env, "java/lang/Integer", "(I)Ljava/lang/Integer;")?, |
| 806 | long: method_ref(jni_env, "java/lang/Long", "(J)Ljava/lang/Long;")?, |
| 807 | float: method_ref(jni_env, "java/lang/Float", "(F)Ljava/lang/Float;")?, |
| 808 | double: method_ref(jni_env, "java/lang/Double", "(D)Ljava/lang/Double;")?, |
| 809 | }); |
| 810 | } |
| 811 | PRIM_BOX_METHS = mem::transmute(Box::new(prim_box_meths(jni_env))); |
| 812 | }); |
| 813 | return ptr::read(PRIM_BOX_METHS); |
no test coverage detected