summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-09 10:59:59 +0200
committerNoel Grandin <noel@peralex.com>2015-06-09 13:10:44 +0200
commit26b4f5be815bc7c77deb3d38d23b51c9dea9fcd1 (patch)
tree2ff7d4d857d2d1f55fd5d15dfbb0dfae088281bc /qadevOOo
parent9a541611895b22ce1833b5151f4f1d420b1c657d (diff)
java:use System.arrayCopy to copy arrays
instead of a for loop Change-Id: I3fbd92c5f96970543c2da3843e54a733bf811e72
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java b/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java
index 2c0869dc5645..11bcb3476842 100644
--- a/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java
+++ b/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java
@@ -82,11 +82,10 @@ public class _XBindableValue extends MultiMethodTest {
}
class MyValueBinding implements XValueBinding {
- private Type[] TypeArray;
private final ArrayList<Type> types = new ArrayList<Type>();
public com.sun.star.uno.Type[] getSupportedValueTypes() {
- return TypeArray;
+ return types.toArray(new Type[types.size()]);
}
public Object getValue(com.sun.star.uno.Type type)
@@ -101,12 +100,6 @@ public class _XBindableValue extends MultiMethodTest {
public boolean supportsType(com.sun.star.uno.Type type) {
types.add(type);
- TypeArray = new Type[types.size()];
-
- for (int i = 0; i < types.size(); i++) {
- TypeArray[i] = (Type) types.toArray()[i];
- }
-
return true;
}
}