(
mut env: JNIEnv<'a>,
_: JClass,
template_jstr: JString<'a>,
)
| 750 | |
| 751 | #[jni_fn("com.cedarpolicy.model.policy.Policy")] |
| 752 | pub fn getTemplateAnnotationsJni<'a>( |
| 753 | mut env: JNIEnv<'a>, |
| 754 | _: JClass, |
| 755 | template_jstr: JString<'a>, |
| 756 | ) -> jvalue { |
| 757 | match get_template_annotations_internal(&mut env, template_jstr) { |
| 758 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 759 | Ok(annotations) => annotations.as_jni(), |
| 760 | } |
| 761 | } |
| 762 | |
| 763 | pub fn get_template_annotations_internal<'a>( |
| 764 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected