(&mut self)
| 110 | |
| 111 | impl Drop for Instance { |
| 112 | fn drop(&mut self) { |
| 113 | debug(&format!("Dropping an instance of {}", self.class_name)); |
| 114 | if !self.skip_deleting_jobject { |
| 115 | if let Some(j_env) = cache::get_thread_local_env_opt() { |
| 116 | jni_utils::delete_java_ref(j_env, self.jinstance); |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | /// Instances contain global Java references and can be sent to other threads |
nothing calls this directly
no test coverage detected