cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r124620 - /cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java
Date Sat, 08 Jan 2005 04:02:24 GMT
Author: antonio
Date: Fri Jan  7 20:02:22 2005
New Revision: 124620

URL: http://svn.apache.org/viewcvs?view=rev&rev=124620
Log:
Use Map.Entry
Modified:
   cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java

Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java?view=diff&rev=124620&p1=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java&r1=124619&p2=cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java&r2=124620
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/SitemapComponentTestCase.java
Fri Jan  7 20:02:22 2005
@@ -470,12 +470,12 @@
             ((AbstractInterpreter)interpreter).register(source);
             
             ArrayList parameters = new ArrayList();
-            for (Iterator i = params.keySet().iterator(); i.hasNext();) {
-                String name = (String)i.next();
-                String value = (String)params.get(name);
+            for (Iterator i = params.entrySet().iterator(); i.hasNext();) {
+                Map.Entry me = (Map.Entry)i.next();
+                String name = (String)me.getKey();
+                String value = (String)me.getValue();
                 parameters.add(new Interpreter.Argument(name, value));
             }
-            
             interpreter.callFunction(function, parameters, getRedirector());
             
         } catch (ServiceException ce) {
@@ -513,12 +513,12 @@
             ((AbstractInterpreter)interpreter).register(source);
             
             ArrayList parameters = new ArrayList();
-            for (Iterator i = params.keySet().iterator(); i.hasNext();) {
-                String name = (String)i.next();
-                String value = (String)params.get(name);
+            for (Iterator i = params.entrySet().iterator(); i.hasNext();) {
+                Map.Entry me = (Map.Entry)i.next();
+                String name = (String)me.getKey();
+                String value = (String)me.getValue();
                 parameters.add(new Interpreter.Argument(name, value));
             }
-            
             interpreter.handleContinuation(id, parameters, getRedirector());
 
         } catch (ServiceException ce) {

Mime
View raw message