You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2008/04/20 05:28:05 UTC
[jira] Resolved: (WW-2581) add generics to RequestAware,
SessionAware, and ParameterAware
[ https://issues.apache.org/struts/browse/WW-2581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Don Brown resolved WW-2581.
---------------------------
Resolution: Fixed
Fix Version/s: 2.1.2
Assignee: Don Brown
Again, good idea, thanks Bob
> add generics to RequestAware, SessionAware, and ParameterAware
> --------------------------------------------------------------
>
> Key: WW-2581
> URL: https://issues.apache.org/struts/browse/WW-2581
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Interceptors
> Reporter: Brad Cupit
> Assignee: Don Brown
> Priority: Minor
> Fix For: 2.1.2
>
>
> Since Struts2 targets Java 1.5, it would be great if RequestAware, SessionAware, and ParameterAware could be updated to use generics.
> Each defines a setter which takes a Map, but the Map does not use generics.
> Problem:
> When implementing these methods, developers must add a @SuppressWarnings("unchecked") to the method to compile without warnings.
> Suggested fix: change the method signatures to use generics.
> RequestAware.setRequest(Map<String, Object> request);
> SessionAware.setSession(Map<String, Object> session);
> ParameterAware.setParameters(Map<String, String[]> parameters);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.