diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-09 14:51:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-09 15:10:51 +0200 |
commit | 3757c03fc8f138427e21c41ef5e66e8c5a98159c (patch) | |
tree | 64d58e7d94aa60c4da475ac038e59d5c1a517437 /odk/source/com | |
parent | 8912e6dab98eabbdeea870a387d30ef1de938acb (diff) |
java: simplify array creation
and remove the need to worry about keeping indexes correct
Change-Id: I9a5fc00f7e28f305279b41099274c96daebebb95
Diffstat (limited to 'odk/source/com')
-rw-r--r-- | odk/source/com/sun/star/lib/loader/InstallationFinder.java | 4 |
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 { |