(
mut env: JNIEnv<'a>,
_: JClass,
template_jstr: JString<'a>,
)
| 797 | |
| 798 | #[jni_fn("com.cedarpolicy.model.policy.Policy")] |
| 799 | pub fn parsePolicyTemplateJni<'a>( |
| 800 | mut env: JNIEnv<'a>, |
| 801 | _: JClass, |
| 802 | template_jstr: JString<'a>, |
| 803 | ) -> jvalue { |
| 804 | match parse_policy_template_internal(&mut env, template_jstr) { |
| 805 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 806 | Ok(template_text) => template_text.as_jni(), |
| 807 | } |
| 808 | } |
| 809 | |
| 810 | fn parse_policy_template_internal<'a>( |
| 811 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected