db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker TreeTest.java
Date Mon, 15 Nov 2004 17:31:10 GMT
arminw      2004/11/15 09:31:10

  Modified:    src/test/org/apache/ojb/broker TreeTest.java
  Log:
  replace Vector with List
  
  Revision  Changes    Path
  1.11      +16 -17    db-ojb/src/test/org/apache/ojb/broker/TreeTest.java
  
  Index: TreeTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/TreeTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TreeTest.java	14 Nov 2004 11:10:21 -0000	1.10
  +++ TreeTest.java	15 Nov 2004 17:31:10 -0000	1.11
  @@ -1,12 +1,11 @@
   package org.apache.ojb.broker;
   
  -import java.util.ArrayList;
  -import java.util.List;
  -import java.util.Vector;
  -
   import org.apache.ojb.broker.metadata.FieldDescriptor;
   import org.apache.ojb.junit.PBTestCase;
   
  +import java.util.List;
  +import java.util.ArrayList;
  +
   /**
    * Testing selfjoins and tree structures
    */
  @@ -38,8 +37,8 @@
   
           result.setId(idVal.intValue());
   		result.setData("" + result.getId());
  -		result.setChilds(new Vector());
  -		result.setMembers(new Vector());
  +		result.setChilds(new ArrayList());
  +		result.setMembers(new ArrayList());
   		return result;
   	}
   
  @@ -66,7 +65,7 @@
   		}
   		result.setData(parent.getId() + "-" + result.getId());
   		result.setParentId(parent.getId());
  -		result.setChilds(new Vector());
  +		result.setChilds(new ArrayList());
   
   		return result;
   	}
  @@ -217,7 +216,7 @@
   
       /**
        * Tree is  recursive type: a Tree element contains some data
  -     * and a Vector of child Tree elements.
  +     * and a List of child Tree elements.
        * This sample demonstrates what is needed to map such a data
        * structure on a DB table
        * @author Thomas Mahler
  @@ -304,9 +303,9 @@
           /**
            * Insert the method's description here.
            * Creation date: (13.02.2001 18:33:02)
  -         * @param newChilds java.util.Vector
  +         * @param newChilds List
            */
  -        public void setChilds(java.util.Vector newChilds)
  +        public void setChilds(List newChilds)
           {
               childs = newChilds;
           }
  @@ -370,7 +369,7 @@
   
       /**
        * Tree is  recursive type: a Tree element contains some data
  -     * and a Vector of child Tree elements.
  +     * and a List of child Tree elements.
        * This sample demonstrates what is needed to map such a data
        * structure on a DB table
        * @author Thomas Mahler
  @@ -410,7 +409,7 @@
   
           public void addChild(TreeGroup newChild)
           {
  -            if (children == null) children = new Vector();
  +            if (children == null) children = new ArrayList();
   
               children.add(newChild);
               newChild.setParentId(this.getId());
  @@ -419,7 +418,7 @@
   
           public void addMember(TreeGroup newMember)
           {
  -            if (groupMembers == null) groupMembers = new Vector();
  +            if (groupMembers == null) groupMembers = new ArrayList();
   
               groupMembers.add(newMember);
               newMember.setGroupId(this.getId());
  @@ -501,9 +500,9 @@
           /**
            * Insert the method's description here.
            * Creation date: (13.02.2001 18:33:02)
  -         * @param newChilds java.util.Vector
  +         * @param newChilds List
            */
  -        public void setChilds(java.util.Vector newChilds)
  +        public void setChilds(List newChilds)
           {
               children = newChilds;
           }
  @@ -538,9 +537,9 @@
           /**
            * Insert the method's description here.
            * Creation date: (13.02.2001 18:33:02)
  -         * @param newMembers java.util.Vector
  +         * @param newMembers List
            */
  -        public void setMembers(java.util.Vector newMembers)
  +        public void setMembers(List newMembers)
           {
               groupMembers = newMembers;
           }
  
  
  

---------------------------------------------------------------------
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