commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject [MESSENGER] Make it compile with JDK 1.5
Date Wed, 26 Jan 2005 15:55:12 GMT
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


Mime
View raw message