summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java')
-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;
}
}