[Libreoffice-commits] core.git: jurt/com
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Tue Oct 14 05:23:14 PDT 2014
jurt/com/sun/star/lib/connections/socket/SocketConnection.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 530f060e41aa28634c133dab2e606907010d3cc3
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Tue Oct 14 11:25:26 2014 +0200
jurt: print an array with java.util.Arrays.toString
Change-Id: I76431b67f9f6fdde2906d6d8082457ef0847108e
Reviewed-on: https://gerrit.libreoffice.org/11964
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/jurt/com/sun/star/lib/connections/socket/SocketConnection.java b/jurt/com/sun/star/lib/connections/socket/SocketConnection.java
index f7ad911..6f2a548 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);
}
/**
More information about the Libreoffice-commits
mailing list