Removed unnecessary exceptions_get_exception() check.
* src/vmcore/annotation.c (annotation_bytearrays_resize): Fixed comment.
/* get annotations: */
annotations = class_get_annotations(c);
- if (exceptions_get_exception() != NULL) {
- /* the only exception possible here should be a out of memory exception
- * raised by copying the annotations into a new java bytearray */
- return NULL;
- }
-
constantPool =
(sun_reflect_ConstantPool*)native_new_and_init(
class_sun_reflect_ConstantPool);
assert(bas != NULL);
- /* if the size already fits do nothing */
if (*bas != NULL) {
oldsize = array_length_get((java_handle_t*)*bas);
+ /* if the size already fits do nothing */
if (size == oldsize) {
return true;
}