[Libreoffice-commits] core.git: javaunohelper/com

rbuj robert.buj at gmail.com
Sun Sep 14 23:07:55 PDT 2014


 javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 352b580e30476dce135a40a21daac7f974ecc430
Author: rbuj <robert.buj at gmail.com>
Date:   Sun Sep 14 14:04:50 2014 +0200

    javaunohelper: warning: unchecked cast
    
    Change-Id: I7c47e3a8657ec2368543088743879085878d78fb
    Reviewed-on: https://gerrit.libreoffice.org/11444
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
index 344ab1f..b00519a 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
@@ -212,22 +212,22 @@ public final class PropertySetMixin {
             if ((p.Attributes & PropertyAttribute.CONSTRAINED) != 0) {
                 ArrayList<XVetoableChangeListener> o = vetoListeners.get(propertyName);
                 if (o != null) {
-                    specificVeto = (ArrayList<XVetoableChangeListener>) o.clone();
+                    specificVeto = new ArrayList<XVetoableChangeListener>(o);
                 }
                 o = vetoListeners.get("");
                 if (o != null) {
-                    unspecificVeto = (ArrayList<XVetoableChangeListener>) o.clone();
+                    unspecificVeto = new ArrayList<XVetoableChangeListener>(o);
                 }
             }
             if ((p.Attributes & PropertyAttribute.BOUND) != 0) {
                 // assert bound != null;
                 ArrayList<XPropertyChangeListener> o = boundListeners.get(propertyName);
                 if (o != null) {
-                    bound.specificListeners = (ArrayList<XPropertyChangeListener>) o.clone();
+                    bound.specificListeners = new ArrayList<XPropertyChangeListener>(o);
                 }
                 o = boundListeners.get("");
                 if (o != null) {
-                    bound.unspecificListeners = (ArrayList<XPropertyChangeListener>) o.clone();
+                    bound.unspecificListeners = new ArrayList<XPropertyChangeListener>(o);
                 }
             }
         }


More information about the Libreoffice-commits mailing list