()
| 858 | } |
| 859 | |
| 860 | pub(crate) fn get_invocation_arg_class() -> errors::Result<jclass> { |
| 861 | get_cached!( |
| 862 | INVOCATION_ARG_CLASS, |
| 863 | { |
| 864 | let env = get_thread_local_env()?; |
| 865 | let c = tweaks::find_class(env, "org/astonbitecode/j4rs/api/dtos/InvocationArg")?; |
| 866 | if CLASS_CACHING_ENABLED { |
| 867 | jni_utils::create_global_ref_from_local_ref(c, env)? |
| 868 | } else { |
| 869 | c |
| 870 | } |
| 871 | }, |
| 872 | set_invocation_arg_class |
| 873 | ) |
| 874 | } |
| 875 | |
| 876 | #[allow(dead_code)] |
| 877 | pub(crate) fn set_factory_constructor_method(j: jmethodID) { |
no outgoing calls
no test coverage detected