summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/table
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-09 14:51:38 +0200
committerNoel Grandin <noel@peralex.com>2015-01-09 15:10:51 +0200
commit3757c03fc8f138427e21c41ef5e66e8c5a98159c (patch)
tree64d58e7d94aa60c4da475ac038e59d5c1a517437 /wizards/com/sun/star/wizards/table
parent8912e6dab98eabbdeea870a387d30ef1de938acb (diff)
java: simplify array creation
and remove the need to worry about keeping indexes correct Change-Id: I9a5fc00f7e28f305279b41099274c96daebebb95
Diffstat (limited to 'wizards/com/sun/star/wizards/table')
-rw-r--r--wizards/com/sun/star/wizards/table/CallTableWizard.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/table/CallTableWizard.java b/wizards/com/sun/star/wizards/table/CallTableWizard.java
index e25f0063dce6..2d126a340adb 100644
--- a/wizards/com/sun/star/wizards/table/CallTableWizard.java
+++ b/wizards/com/sun/star/wizards/table/CallTableWizard.java
@@ -110,9 +110,7 @@ public class CallTableWizard
*/
public java.lang.String[] getSupportedServiceNames()
{
- String[] stringSupportedServiceNames = new String[1];
-
- stringSupportedServiceNames[0] = __serviceName;
+ String[] stringSupportedServiceNames = new String[] { __serviceName };
return (stringSupportedServiceNames);
}