summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-20 14:56:25 +0200
committerNoel Grandin <noel@peralex.com>2014-10-07 13:20:01 +0200
commit02ace92aba684238622610776b2c618aa04c7a02 (patch)
treebc5ad8ece4558a70d6e6e39b1a699fbc47a83c55 /forms
parent04ace01ec5f4c18a294a10f68bb42bddda3b29c4 (diff)
java: optimise calls to toArray
passing in a correctly sized array requires one less allocation Change-Id: I6198d226d9b630c99c4e8b6e3d0fdf890c495b44
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/integration/forms/ListBox.java4
1 files changed, 1 insertions, 3 deletions
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() );