From 352b580e30476dce135a40a21daac7f974ecc430 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 14 Sep 2014 14:04:50 +0200 Subject: javaunohelper: warning: unchecked cast Change-Id: I7c47e3a8657ec2368543088743879085878d78fb Reviewed-on: https://gerrit.libreoffice.org/11444 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'javaunohelper/com') 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 o = vetoListeners.get(propertyName); if (o != null) { - specificVeto = (ArrayList) o.clone(); + specificVeto = new ArrayList(o); } o = vetoListeners.get(""); if (o != null) { - unspecificVeto = (ArrayList) o.clone(); + unspecificVeto = new ArrayList(o); } } if ((p.Attributes & PropertyAttribute.BOUND) != 0) { // assert bound != null; ArrayList o = boundListeners.get(propertyName); if (o != null) { - bound.specificListeners = (ArrayList) o.clone(); + bound.specificListeners = new ArrayList(o); } o = boundListeners.get(""); if (o != null) { - bound.unspecificListeners = (ArrayList) o.clone(); + bound.unspecificListeners = new ArrayList(o); } } } -- cgit