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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to