From f3b1933a923a615a9f7bc6a5159182ca9cce25ba Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Tue, 13 Aug 2013 15:51:37 +0400 Subject: [PATCH] LinkedList -> ArrayList --- modules/java/generator/gen_java.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/java/generator/gen_java.py b/modules/java/generator/gen_java.py index 1e084c7..254298d 100755 --- a/modules/java/generator/gen_java.py +++ b/modules/java/generator/gen_java.py @@ -521,7 +521,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1getTextSize public java.util.List getSupportedPreviewSizes() { String[] sizes_str = getSupportedPreviewSizes_0(nativeObj).split(","); - java.util.List sizes = new java.util.LinkedList(); + java.util.List sizes = new java.util.ArrayList(sizes_str.length); for (String str : sizes_str) { String[] wh = str.split("x"); -- 2.7.4