diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-14 11:25:26 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-14 12:22:51 +0000 |
commit | 530f060e41aa28634c133dab2e606907010d3cc3 (patch) | |
tree | 409f3c559579dab77615757501f012fc8e1ae053 /jurt/com | |
parent | ba39577890ea64e272ae98d70aa33cbc9757a550 (diff) |
jurt: print an array with java.util.Arrays.toString
Change-Id: I76431b67f9f6fdde2906d6d8082457ef0847108e
Reviewed-on: https://gerrit.libreoffice.org/11964
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'jurt/com')
-rw-r--r-- | jurt/com/sun/star/lib/connections/socket/SocketConnection.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jurt/com/sun/star/lib/connections/socket/SocketConnection.java b/jurt/com/sun/star/lib/connections/socket/SocketConnection.java index f7ad9119a4c1..6f2a548afb2c 100644 --- a/jurt/com/sun/star/lib/connections/socket/SocketConnection.java +++ b/jurt/com/sun/star/lib/connections/socket/SocketConnection.java @@ -23,8 +23,11 @@ import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; + import java.net.Socket; + import java.util.ArrayList; +import java.util.Arrays; import com.sun.star.connection.XConnection; import com.sun.star.connection.XConnectionBroadcaster; @@ -154,7 +157,7 @@ public class SocketConnection implements XConnection, XConnectionBroadcaster { throw unoIOException; } - if (DEBUG) System.err.println("##### " + getClass().getName() + " - read byte:" + read_bytes + " " + bytes[0]); + if (DEBUG) System.err.println("##### " + getClass().getName() + " - read byte:" + read_bytes + " " + Arrays.toString(bytes[0])); return read_bytes; } @@ -176,7 +179,7 @@ public class SocketConnection implements XConnection, XConnectionBroadcaster { throw unoIOException; } - if (DEBUG) System.err.println("##### " + getClass().getName() + " - written bytes:" + aData + " " + aData.length); + if (DEBUG) System.err.println("##### " + getClass().getName() + " - written bytes:" + Arrays.toString(aData) + " " + aData.length); } /** |