commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [MESSENGER] Make it compile with JDK 1.5
Date Wed, 26 Jan 2005 16:31:07 GMT
Messenger is dead I think, James moved the dev over to Codehaus and
suggesting we consider removing Messenger has been on my todo list for
a year or so :)

Still, no reason not to fix the code, just mentioning it before
another year passes.

Hen

On Wed, 26 Jan 2005 16:55:12 +0100, Stefan Bodewig <bodewig@apache.org> wrote:
> subject says it all.  Some trivial "enum" replacements.
> 
> Stefan
> 
> Index: src/java/org/apache/commons/messagelet/BridgeMDO.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messagelet/BridgeMDO.java,v
> retrieving revision 1.7
> diff -u -r1.7 BridgeMDO.java
> --- src/java/org/apache/commons/messagelet/BridgeMDO.java       4 Mar 2003 10:21:06 -0000
      1.7
> +++ src/java/org/apache/commons/messagelet/BridgeMDO.java       26 Jan 2005 15:54:44
-0000
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (C) The Apache Software Foundation. All rights reserved.
> + * Copyright (C) 2002-2005 The Apache Software Foundation. All rights reserved.
>   *
>   * This software is published under the terms of the Apache Software License
>   * version 1.1, a copy of which has been included with this distribution in
> @@ -344,8 +344,8 @@
>          MapMessage answer = getOutputMessenger().createMapMessage();
> 
>          // copy across all values
> -        for ( Enumeration enum = inputMessage.getMapNames(); enum.hasMoreElements();
) {
> -            String name = (String) enum.nextElement();
> +        for ( Enumeration e = inputMessage.getMapNames(); e.hasMoreElements(); ) {
> +            String name = (String) e.nextElement();
>              Object value = inputMessage.getObject( name );
>              answer.setObject( name, value );
>          }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
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