harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r548657 - /harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/beancontext/BeanContextMembershipEvent.java
Date Tue, 19 Jun 2007 08:58:44 GMT
Author: leoli
Date: Tue Jun 19 01:58:44 2007
New Revision: 548657

URL: http://svn.apache.org/viewvc?view=rev&rev=548657
Log:
Fix bug in java.security.beancontext.BeanContextMembershipEvent.

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/beancontext/BeanContextMembershipEvent.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/beancontext/BeanContextMembershipEvent.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/beancontext/BeanContextMembershipEvent.java?view=diff&rev=548657&r1=548656&r2=548657
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/beancontext/BeanContextMembershipEvent.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/beancontext/BeanContextMembershipEvent.java
Tue Jun 19 01:58:44 2007
@@ -17,9 +17,9 @@
 
 package java.beans.beancontext;
 
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Iterator;
-import java.util.Vector;
 
 import org.apache.harmony.beans.internal.nls.Messages;
 @SuppressWarnings("unchecked")
@@ -47,11 +47,7 @@
         }
 
         // Initialize collection
-        this.children = new Vector<Object>();
-
-        for (Object element : changes) {
-            this.children.add(element);
-        }
+        this.children = Arrays.asList(changes);
     }
 
     public boolean contains(Object child) {



Mime
View raw message