| 332 | #endif |
| 333 | |
| 334 | ~array() |
| 335 | { |
| 336 | if (ref) |
| 337 | { |
| 338 | // Don't delete the reference if it's a local reference, since the only reason |
| 339 | // we will normally be using array object's that contain local references |
| 340 | // is because we plan on returning the newly constructed array back to the JVM, |
| 341 | // which automatically frees local references using the normal JVM garbage |
| 342 | // collection scheme. |
| 343 | if (is_global_ref) |
| 344 | JNI_GetEnv()->DeleteGlobalRef(ref); |
| 345 | |
| 346 | ref = NULL; |
| 347 | is_global_ref = false; |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | size_t size() const |
| 352 | { |
nothing calls this directly
no outgoing calls
no test coverage detected