scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 0876cc15fc188db801a2198d9ca90a5a8b88f92f Author: rbuj <robert....@gmail.com> Date: Tue Sep 9 15:38:30 2014 +0200 scripting: fix array copy and, use System.arraycopy Change-Id: If8addcc5d95f610ade404e62e4a2a775319e9ff3 Reviewed-on: https://gerrit.libreoffice.org/11354 Reviewed-by: Noel Grandin <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@gmail.com> diff --git a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java index d221155..b1c663c 100644 --- a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java +++ b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java @@ -71,10 +71,7 @@ public class XOutputStreamWrapper extends OutputStream { throw new java.io.IOException( "Stream is null" ); } byte[] bytes = new byte[len]; - for ( int i=off; i< off+len; i++ ) - { - bytes[i] = b[i]; - } + System.arraycopy(b, off, bytes, 0, len); try { m_xOutputStream.writeBytes(bytes); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits