}
private boolean shouldReleaseInFinalize(Class<? extends ObjCObject> javaClass) {
// Almost everything should be released in finalize, except wrappers for
// NSAutoreleasePool.
ReleaseInFinalize annotation = javaClass.getAnnotation(ReleaseInFinalize.class);
if (annotation == null) {
return true;
}
return annotation.value();
}