diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-14 15:51:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-14 16:06:32 +0200 |
commit | f1dfc5690a2b1a24e2d2f707a50c34d7df61dc4d (patch) | |
tree | d4775be4ba7176ad9e711242179d207c7e8fd4f2 | |
parent | 360e139ea6ebb13630dac644e95f850e21cf9ba2 (diff) |
cid#1326854 EC: Comparing incompatible types for equality
Change-Id: Ifc2b655bdb8dc361dd051be5b8b29fe6dee55ff2
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XCloneable.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/util/_XCloneable.java b/qadevOOo/tests/java/ifc/util/_XCloneable.java index 91c253e5dc5e..c37dccaa1271 100644 --- a/qadevOOo/tests/java/ifc/util/_XCloneable.java +++ b/qadevOOo/tests/java/ifc/util/_XCloneable.java @@ -20,6 +20,8 @@ package ifc.util; import lib.MultiMethodTest; +import java.util.Arrays; + import com.sun.star.lang.XServiceInfo; import com.sun.star.lang.XTypeProvider; import com.sun.star.uno.UnoRuntime; @@ -67,8 +69,7 @@ public class _XCloneable extends MultiMethodTest { } protected boolean checkImplementationID(XInterface org, XInterface clone) { - boolean res = getImplementationID(org).equals( - getImplementationID(clone)); + boolean res = Arrays.equals(getImplementationID(org), getImplementationID(clone)); if (res && getImplementationID(org).length > 0) { log.println("ImplementationID equals the clone has the same id as the original Object"); log.println("------------------------------------------------------------------------"); |