You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by or...@apache.org on 2005/02/24 02:46:20 UTC

cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/tree DefaultMutableTreeNode.java

oros        2005/02/23 17:46:20

  Modified:    src/components/org/apache/myfaces/custom/tree
                        DefaultMutableTreeNode.java
  Log:
  fixed constructor to use List instead of ArrayList
  
  Revision  Changes    Path
  1.5       +8 -4      incubator-myfaces/src/components/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java
  
  Index: DefaultMutableTreeNode.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultMutableTreeNode.java	26 Nov 2004 12:14:10 -0000	1.4
  +++ DefaultMutableTreeNode.java	24 Feb 2005 01:46:20 -0000	1.5
  @@ -18,6 +18,7 @@
   import java.util.ArrayList;
   import java.util.Collections;
   import java.util.Iterator;
  +import java.util.List;
   
   /**
    * Default implementation of {@link MutableTreeNode}.
  @@ -26,6 +27,9 @@
    * @version $Revision$ $Date$
    *
    * $Log$
  + * Revision 1.5  2005/02/24 01:46:20  oros
  + * fixed constructor to use List instead of ArrayList
  + *
    * Revision 1.4  2004/11/26 12:14:10  oros
    * MYFACES-8: applied tree table patch by David Le Strat
    *
  @@ -34,7 +38,7 @@
   public class DefaultMutableTreeNode implements MutableTreeNode
   {
   
  -    private ArrayList children = new ArrayList();
  +    private List children = new ArrayList();
   
       private Object userObject;
   
  @@ -54,7 +58,7 @@
        * @param children The children.
        * @param allowsChildren The allowsChildren.
        */
  -    public DefaultMutableTreeNode(ArrayList children, boolean allowsChildren)
  +    public DefaultMutableTreeNode(List children, boolean allowsChildren)
       {
           this.children = children;
           this.allowsChildren = allowsChildren;