(
mut env: JNIEnv<'a>,
_: JClass,
policy_jstr: JString<'a>,
)
| 718 | |
| 719 | #[jni_fn("com.cedarpolicy.model.policy.Policy")] |
| 720 | pub fn getPolicyAnnotationsJni<'a>( |
| 721 | mut env: JNIEnv<'a>, |
| 722 | _: JClass, |
| 723 | policy_jstr: JString<'a>, |
| 724 | ) -> jvalue { |
| 725 | match get_policy_annotations_internal(&mut env, policy_jstr) { |
| 726 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 727 | Ok(annotations) => annotations.as_jni(), |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | pub fn get_policy_annotations_internal<'a>( |
| 732 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected