You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2005/01/04 20:34:51 UTC

cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/gui/action Copy.java

sebb        2005/01/04 11:34:51

  Modified:    src/core/org/apache/jmeter/gui/action Copy.java
  Log:
  Rename "enum" variable to avoid clash with Java 1.5 keyword
  
  Revision  Changes    Path
  1.9       +6 -6      jakarta-jmeter/src/core/org/apache/jmeter/gui/action/Copy.java
  
  Index: Copy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/gui/action/Copy.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Copy.java	6 Oct 2004 14:43:52 -0000	1.8
  +++ Copy.java	4 Jan 2005 19:34:51 -0000	1.9
  @@ -1,6 +1,6 @@
   // $Header$
   /*
  - * Copyright 2003-2004 The Apache Software Foundation.
  + * Copyright 2003-2005 The Apache Software Foundation.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -116,10 +116,10 @@
   
       private static void cloneChildren(JMeterTreeNode to, JMeterTreeNode from)
       {
  -        Enumeration enum = from.children();
  -        while (enum.hasMoreElements())
  +        Enumeration enumFrom = from.children();
  +        while (enumFrom.hasMoreElements())
           {
  -            JMeterTreeNode child = (JMeterTreeNode) enum.nextElement();
  +            JMeterTreeNode child = (JMeterTreeNode) enumFrom.nextElement();
               JMeterTreeNode childClone = (JMeterTreeNode) child.clone();
               childClone.setUserObject(
                   ((TestElement) child.getUserObject()).clone());
  
  
  

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