avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject cvs commit: jakarta-avalon/src/java/org/apache/avalon/framework/parameters Parameters.java
Date Sun, 23 Jun 2002 20:10:46 GMT
leosimons    2002/06/23 13:10:46

  Modified:    src/java/org/apache/avalon/framework/parameters
                        Parameters.java
  Log:
  update merge() method so it doesn't use the deprecated getParameterNames() method.
  
  Revision  Changes    Path
  1.25      +4 -4      jakarta-avalon/src/java/org/apache/avalon/framework/parameters/Parameters.java
  
  Index: Parameters.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/parameters/Parameters.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Parameters.java	10 May 2002 03:00:48 -0000	1.24
  +++ Parameters.java	23 Jun 2002 20:10:46 -0000	1.25
  @@ -491,11 +491,11 @@
       {
           checkWriteable();
   
  -        final Iterator names = other.getParameterNames();
  +        final String[] names = other.getNames();
   
  -        while( names.hasNext() )
  -        {
  -            final String name = (String)names.next();
  +        for( int i = 0; i < names.length; i++ )
  +		{
  +            final String name = names[i];
               String value = null;
               try
               {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message