You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "John Lindal (JIRA)" <ji...@apache.org> on 2010/09/10 01:26:32 UTC

[jira] Commented: (WW-3501) Avoid cast in ParameterFilterInterceptor

    [ https://issues.apache.org/jira/browse/WW-3501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907821#action_12907821 ] 

John Lindal commented on WW-3501:
---------------------------------

This also applies to:

        for (Object o : parameters.keySet()) {
            String param = o.toString();

which should be:

        for (String param : parameters.keySet()) {


> Avoid cast in ParameterFilterInterceptor
> ----------------------------------------
>
>                 Key: WW-3501
>                 URL: https://issues.apache.org/jira/browse/WW-3501
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Interceptors
>    Affects Versions: 2.2.1
>            Reporter: John Lindal
>            Priority: Trivial
>
> Since includesExcludesMap is defined as Map<String, Boolean>, instead of:
>             for (Object o1 : includesExcludesMap.keySet()) {
>                 String currRule = (String) o1;
> use:
>             for (String currRule : includesExcludesMap.keySet()) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.