summaryrefslogtreecommitdiff
path: root/javaunohelper
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 /javaunohelper
parent8912e6dab98eabbdeea870a387d30ef1de938acb (diff)
java: simplify array creation
and remove the need to worry about keeping indexes correct Change-Id: I9a5fc00f7e28f305279b41099274c96daebebb95
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/com/sun/star/comp/helper/Bootstrap.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/Bootstrap.java b/javaunohelper/com/sun/star/comp/helper/Bootstrap.java
index 6e677e66ddae..537959b98e24 100644
--- a/javaunohelper/com/sun/star/comp/helper/Bootstrap.java
+++ b/javaunohelper/com/sun/star/comp/helper/Bootstrap.java
@@ -270,13 +270,13 @@ public class Bootstrap {
Long.toString( (new Random()).nextLong() & 0x7fffffffffffffffL );
// create call with arguments
- String[] cmdArray = new String[6];
- cmdArray[0] = fOffice.getPath();
- cmdArray[1] = "--nologo";
- cmdArray[2] = "--nodefault";
- cmdArray[3] = "--norestore";
- cmdArray[4] = "--nolockcheck";
- cmdArray[5] = "--accept=pipe,name=" + sPipeName + ";urp;";
+ String[] cmdArray = new String[] {
+ fOffice.getPath(),
+ "--nologo",
+ "--nodefault",
+ "--norestore",
+ "--nolockcheck",
+ "--accept=pipe,name=" + sPipeName + ";urp;" };
// start office process
Process p = Runtime.getRuntime().exec( cmdArray );