db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core/proxy CollectionProxyDefaultImpl.java
Date Sat, 23 Oct 2004 15:38:17 GMT
brj         2004/10/23 08:38:17

  Modified:    src/java/org/apache/ojb/broker/core/proxy
                        CollectionProxyDefaultImpl.java
  Log:
  avoid cast to Collection
  
  Revision  Changes    Path
  1.12      +7 -1      db-ojb/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java
  
  Index: CollectionProxyDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CollectionProxyDefaultImpl.java	20 Oct 2004 18:50:46 -0000	1.11
  +++ CollectionProxyDefaultImpl.java	23 Oct 2004 15:38:17 -0000	1.12
  @@ -481,6 +481,12 @@
        */
       public void ojbAddAll(ManageableCollection otherCollection)
       {
  +		Iterator it = otherCollection.ojbIterator();
  +		while (it.hasNext())
  +		{
  +			ojbAdd(it.next());
  +		}
  +        
           addAll((Collection)otherCollection);
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message