From 72ddd865d1ef0a0828f161ff4a4f822a0e4a22d1 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 11 Oct 2016 13:45:36 -0400 Subject: [PATCH] Add note about uninitialized data in ArrayList.Resize / ResizeArray. --- plugins/include/adt_array.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/include/adt_array.inc b/plugins/include/adt_array.inc index 778fd99c..77b292ff 100644 --- a/plugins/include/adt_array.inc +++ b/plugins/include/adt_array.inc @@ -78,7 +78,8 @@ methodmap ArrayList < Handle { public native ArrayList Clone(); // Resizes an array. If the size is smaller than the current size, the - // array is truncated. + // array is truncated. If the size is larger than the current size, + // the data at the additional indexes will not be initialized. // // @param newsize New size. public native void Resize(int newsize); @@ -252,7 +253,8 @@ native Handle CloneArray(Handle array); /** * Resizes an array. If the size is smaller than the current size, - * the array is truncated. + * the array is truncated. If the size is larger than the current size, + * the data at the additional indexes will not be initialized. * * @param array Array Handle. * @param newsize New size.