Author: jafl
Date: Sun Jan 30 19:21:43 2011
New Revision: 1065357

URL: http://svn.apache.org/viewvc?rev=1065357&view=rev
Log:
WW-3501 avoid cast by using existing generics

Modified:
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParameterFilterInterceptor.java

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParameterFilterInterceptor.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParameterFilterInterceptor.java?rev=1065357&r1=1065356&r2=1065357&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParameterFilterInterceptor.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParameterFilterInterceptor.java
 Sun Jan 30 19:21:43 2011
@@ -110,14 +110,10 @@ public class ParameterFilterInterceptor 
 
         Map<String, Boolean> includesExcludesMap = getIncludesExcludesMap();
 
-        for (Object o : parameters.keySet()) {
-            String param = o.toString();
-
+        for (String param : parameters.keySet()) {
             boolean currentAllowed = !isDefaultBlock();
 
-            for (Object o1 : includesExcludesMap.keySet()) {
-                String currRule = (String) o1;
-
+            for (String currRule : includesExcludesMap.keySet()) {
                 if (param.startsWith(currRule)
                         && (param.length() == currRule.length()
                         || isPropSeperator(param.charAt(currRule.length())))) {


Reply via email to