[Libreoffice-commits] core.git: qadevOOo/runner

rbuj robert.buj at gmail.com
Wed Sep 10 01:15:43 PDT 2014


 qadevOOo/runner/lib/Parameters.java |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit c6a2868a75a90005f9d711d6f1419ba704670781
Author: rbuj <robert.buj at gmail.com>
Date:   Tue Sep 9 15:42:53 2014 +0200

    qadevOOo: use System.arraycopy
    
    Change-Id: Ibbac337b481e138ff9bfaa9d350b52e368ba5f2b
    Reviewed-on: https://gerrit.libreoffice.org/11355
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/qadevOOo/runner/lib/Parameters.java b/qadevOOo/runner/lib/Parameters.java
index e66ea50..8c05d77 100644
--- a/qadevOOo/runner/lib/Parameters.java
+++ b/qadevOOo/runner/lib/Parameters.java
@@ -91,10 +91,7 @@ public class Parameters implements XPropertySet {
         parameters.put(name, value);
         int size = props.length;
         Property[] addProps = new Property[size+1];
-        for (int i=0; i<size; i++)
-        {
-            addProps[i] = props[i];
-        }
+        System.arraycopy(props, 0, addProps, 0, size);
         addProps[size] = new Property(name, size, new Type(value.getClass()), (short)0);
         props = addProps;
     }


More information about the Libreoffice-commits mailing list