cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1154310 - /cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java
Date Fri, 05 Aug 2011 16:52:12 GMT
Author: anathaniel
Date: Fri Aug  5 16:52:12 2011
New Revision: 1154310

URL: http://svn.apache.org/viewvc?rev=1154310&view=rev
Log:
Limit scope of @SuppressWarnings("unchecked")

Modified:
    cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java

Modified: cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java?rev=1154310&r1=1154309&r2=1154310&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/RequestProcessor.java
Fri Aug  5 16:52:12 2011
@@ -123,11 +123,13 @@ public class RequestProcessor {
         return this.baseURL;
     }
 
-    @SuppressWarnings("unchecked")
     private static Map<String, Object> getInvocationParameters(HttpServletRequest req)
{
         Map<String, Object> invocationParameters = new HashMap<String, Object>();
 
-        for (Enumeration<String> names = req.getParameterNames(); names.hasMoreElements();)
{
+        @SuppressWarnings("unchecked")
+        Enumeration<String> names = req.getParameterNames();
+
+        while (names.hasMoreElements()) {
             String name = names.nextElement();
             invocationParameters.put(name, req.getParameter(name));
         }



Mime
View raw message