From 02ace92aba684238622610776b2c618aa04c7a02 Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel@peralex.com>
Date: Wed, 20 Aug 2014 14:56:25 +0200
Subject: java: optimise calls to toArray

passing in a correctly sized array requires one less allocation

Change-Id: I6198d226d9b630c99c4e8b6e3d0fdf890c495b44
---
 forms/qa/integration/forms/ListBox.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'forms/qa')

diff --git a/forms/qa/integration/forms/ListBox.java b/forms/qa/integration/forms/ListBox.java
index a6e5326344e1..96a9d72a4a42 100644
--- a/forms/qa/integration/forms/ListBox.java
+++ b/forms/qa/integration/forms/ListBox.java
@@ -229,9 +229,7 @@ public class ListBox extends TestCase
             }
 
             // create the table taking all those foreign keys
-            m_database.createTable( new HsqlTableDescriptor(
-                    m_foreignKeyTableName,
-                    foreignKeyColumns.toArray( new HsqlColumnDescriptor[foreignKeyColumns.size()] ) ) );
+            m_database.createTable( new HsqlTableDescriptor( m_foreignKeyTableName, foreignKeyColumns.toArray( new HsqlColumnDescriptor[foreignKeyColumns.size()] ) ) );
             // fill in some data
             foreignKeyInsertSQL.append( ")" );
             XPreparedStatement statement = connection.prepareStatement( foreignKeyInsertSQL.toString() );
-- 
cgit