struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Cupit (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-2581) add generics to RequestAware, SessionAware, and ParameterAware
Date Mon, 07 Apr 2008 20:43:58 GMT
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
            Priority: Minor


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.


Mime
View raw message