struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pbened...@apache.org
Subject svn commit: r1603904 - /struts/struts1/branches/STRUTS_1_2_BRANCH/src/test/org/apache/struts/mock/MockMultipartRequestHandler.java
Date Thu, 19 Jun 2014 14:50:15 GMT
Author: pbenedict
Date: Thu Jun 19 14:50:15 2014
New Revision: 1603904

URL: http://svn.apache.org/r1603904
Log:
Fix illegal identifier to make JDK 5 compatible

Modified:
    struts/struts1/branches/STRUTS_1_2_BRANCH/src/test/org/apache/struts/mock/MockMultipartRequestHandler.java

Modified: struts/struts1/branches/STRUTS_1_2_BRANCH/src/test/org/apache/struts/mock/MockMultipartRequestHandler.java
URL: http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_2_BRANCH/src/test/org/apache/struts/mock/MockMultipartRequestHandler.java?rev=1603904&r1=1603903&r2=1603904&view=diff
==============================================================================
--- struts/struts1/branches/STRUTS_1_2_BRANCH/src/test/org/apache/struts/mock/MockMultipartRequestHandler.java
(original)
+++ struts/struts1/branches/STRUTS_1_2_BRANCH/src/test/org/apache/struts/mock/MockMultipartRequestHandler.java
Thu Jun 19 14:50:15 2014
@@ -88,9 +88,9 @@ public class MockMultipartRequestHandler
       */
     public void handleRequest(HttpServletRequest request) throws ServletException {
         elements = new Hashtable();
-        Enumeration enum = request.getParameterNames();
-        while (enum.hasMoreElements()) {
-            String key = enum.nextElement().toString();
+        Enumeration e = request.getParameterNames();
+        while (e.hasMoreElements()) {
+            String key = e.nextElement().toString();
             elements.put(key, request.getParameter(key));
         }
     }



Mime
View raw message