fixed.

-- dims


On Wed, 26 Jan 2005 16:31:59 +0100, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> subject says it all.  Some trivial "enum" replacements.
> 
> Stefan
> 
> Index: src/java/org/apache/commons/mail/Email.java
> ===================================================================
> RCS file: 
> /home/cvspublic/jakarta-commons/email/src/java/org/apache/commons/mail/Email.java,v
> retrieving revision 1.5
> diff -u -r1.5 Email.java
> --- src/java/org/apache/commons/mail/Email.java 15 Jan 2005 17:15:31 -0000    
>   1.5
> +++ src/java/org/apache/commons/mail/Email.java 26 Jan 2005 15:31:32 -0000
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright 2001-2004 The Apache Software Foundation
> + * Copyright 2001-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.
> @@ -797,11 +797,11 @@
> 
>              if (this.headers.size() > 0)
>              {
> -                Enumeration enum = this.headers.keys();
> +                Enumeration enumHeaderKeys = this.headers.keys();
> 
> -                while (enum.hasMoreElements())
> +                while (enumHeaderKeys.hasMoreElements())
>                  {
> -                    String name = (String) enum.nextElement();
> +                    String name = (String) enumHeaderKeys.nextElement();
>                      String value = (String) headers.get(name);
>                      this.message.addHeader(name, value);
>                  }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to