diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-09-16 18:34:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-17 06:11:56 +0000 |
commit | 99920c36e926471311b940902c132d48370328ca (patch) | |
tree | 001463b5739c14b8748358b1cac68f3b823b4249 | |
parent | bean: encode(String) in URLEncoder has been deprecated (diff) | |
download | core-99920c36e926471311b940902c132d48370328ca.tar.gz core-99920c36e926471311b940902c132d48370328ca.zip |
bean: Array concatenated with a String
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Arrays.html#toString(java.lang.Object[])
Change-Id: I42090bf534a9a59fa97061ec2855f79328b1dd45
Reviewed-on: https://gerrit.libreoffice.org/11478
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | bean/com/sun/star/beans/LocalOfficeConnection.java | 3 | ||||
-rw-r--r-- | bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bean/com/sun/star/beans/LocalOfficeConnection.java b/bean/com/sun/star/beans/LocalOfficeConnection.java index e972e2b9ca13..b091d544d56d 100644 --- a/bean/com/sun/star/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/beans/LocalOfficeConnection.java @@ -24,6 +24,7 @@ import java.io.UnsupportedEncodingException; import java.util.Iterator; import java.util.List; import java.util.ArrayList; +import java.util.Arrays; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XEventListener; @@ -594,7 +595,7 @@ public class LocalOfficeConnection // start process mProcess = Runtime.getRuntime().exec(cmdArray); if ( mProcess == null ) - throw new RuntimeException( "cannot start soffice: " + cmdArray ); + throw new RuntimeException( "cannot start soffice: " + Arrays.toString(cmdArray) ); } /** diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index f1299cdfbaf4..7f1a95a26834 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java @@ -24,6 +24,7 @@ import java.io.UnsupportedEncodingException; import java.util.Iterator; import java.util.List; import java.util.ArrayList; +import java.util.Arrays; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XComponent; @@ -725,7 +726,7 @@ public class LocalOfficeConnection // start process mProcess = Runtime.getRuntime().exec(cmdArray); if ( mProcess == null ) - throw new com.sun.star.uno.RuntimeException( "cannot start soffice: " + cmdArray ); + throw new com.sun.star.uno.RuntimeException( "cannot start soffice: " + Arrays.toString(cmdArray) ); new StreamProcessor(mProcess.getInputStream(), System.out); new StreamProcessor(mProcess.getErrorStream(), System.err); } |