diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-14 14:04:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-15 06:07:28 +0000 |
commit | 352b580e30476dce135a40a21daac7f974ecc430 (patch) | |
tree | f2e1114589834f8febe1ab9ad2e6c5b0444b5a45 /javaunohelper | |
parent | 051b29e1025253f35f87a04e297760aa8b40611f (diff) |
javaunohelper: warning: unchecked cast
Change-Id: I7c47e3a8657ec2368543088743879085878d78fb
Reviewed-on: https://gerrit.libreoffice.org/11444
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java index 344ab1f16a28..b00519af7712 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); } } } |