summaryrefslogtreecommitdiffstats
path: root/odk/source
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 /odk/source
parentApparently wants to use pData, not &pData, as source (diff)
downloadcore-3757c03fc8f138427e21c41ef5e66e8c5a98159c.tar.gz
core-3757c03fc8f138427e21c41ef5e66e8c5a98159c.zip
java: simplify array creation
and remove the need to worry about keeping indexes correct Change-Id: I9a5fc00f7e28f305279b41099274c96daebebb95
Diffstat (limited to 'odk/source')
-rw-r--r--odk/source/com/sun/star/lib/loader/InstallationFinder.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/odk/source/com/sun/star/lib/loader/InstallationFinder.java b/odk/source/com/sun/star/lib/loader/InstallationFinder.java
index 05ba219bfe8b..d1f8738cbef9 100644
--- a/odk/source/com/sun/star/lib/loader/InstallationFinder.java
+++ b/odk/source/com/sun/star/lib/loader/InstallationFinder.java
@@ -291,9 +291,7 @@ final class InstallationFinder {
String path = null;
// start the which process
- String[] cmdArray = new String[2];
- cmdArray[0] = WHICH;
- cmdArray[1] = SOFFICE;
+ String[] cmdArray = new String[] { WHICH, SOFFICE };
Process proc = null;
Runtime rt = Runtime.getRuntime();
try {