struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1418923 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CheckboxInterceptor.java
Date Sun, 09 Dec 2012 12:57:08 GMT
Author: lukaszlenart
Date: Sun Dec  9 12:57:07 2012
New Revision: 1418923

URL: http://svn.apache.org/viewvc?rev=1418923&view=rev
Log:
WW-2537 clears warning about generics

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CheckboxInterceptor.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CheckboxInterceptor.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CheckboxInterceptor.java?rev=1418923&r1=1418922&r2=1418923&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CheckboxInterceptor.java
(original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/CheckboxInterceptor.java
Sun Dec  9 12:57:07 2012
@@ -58,12 +58,13 @@ public class CheckboxInterceptor extends
     private static final Logger LOG = LoggerFactory.getLogger(CheckboxInterceptor.class);
 
     public String intercept(ActionInvocation ai) throws Exception {
-        Map parameters = ai.getInvocationContext().getParameters();
+        Map<String, Object> parameters = ai.getInvocationContext().getParameters();
         Map<String, String[]> newParams = new HashMap<String, String[]>();
-        Set<Map.Entry> entries = parameters.entrySet();
-        for (Iterator<Map.Entry> iterator = entries.iterator(); iterator.hasNext();)
{
-            Map.Entry entry = iterator.next();
-            String key = (String)entry.getKey();
+        Set<Map.Entry<String, Object>> entries = parameters.entrySet();
+
+        for (Iterator<Map.Entry<String, Object>> iterator = entries.iterator();
iterator.hasNext();) {
+            Map.Entry<String, Object> entry = iterator.next();
+            String key = entry.getKey();
 
             if (key.startsWith("__checkbox_")) {
                 String name = key.substring("__checkbox_".length());



Mime
View raw message