commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: [EMAIL] Make it compile with JDK 1.5
Date Wed, 26 Jan 2005 15:54:47 GMT
fixed.

-- dims


On Wed, 26 Jan 2005 16:31:59 +0100, Stefan Bodewig <bodewig@apache.org> 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: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 


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

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


Mime
View raw message