diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-09 10:59:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-09 13:10:44 +0200 |
commit | 26b4f5be815bc7c77deb3d38d23b51c9dea9fcd1 (patch) | |
tree | 2ff7d4d857d2d1f55fd5d15dfbb0dfae088281bc /odk | |
parent | 9a541611895b22ce1833b5151f4f1d420b1c657d (diff) |
java:use System.arrayCopy to copy arrays
instead of a for loop
Change-Id: I3fbd92c5f96970543c2da3843e54a733bf811e72
Diffstat (limited to 'odk')
-rw-r--r-- | odk/source/com/sun/star/lib/loader/Loader.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/odk/source/com/sun/star/lib/loader/Loader.java b/odk/source/com/sun/star/lib/loader/Loader.java index 787ccbb48b33..750f0b792048 100644 --- a/odk/source/com/sun/star/lib/loader/Loader.java +++ b/odk/source/com/sun/star/lib/loader/Loader.java @@ -218,9 +218,7 @@ public final class Loader { return; } byte[] buf2 = new byte[2 * n]; - for (int i = 0; i < n; ++i) { - buf2[i] = buf[i]; - } + System.arraycopy(buf, 0, buf2, 0, n); buf = buf2; } int k = s.read(buf, n, buf.length - n); |