WW-2932 Change setParameters back to String, String[]

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@728521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nils-Helge Garli
2008-12-21 21:51:53 +00:00
parent f43d64ab54
commit 71c6669067
3 changed files with 3 additions and 3 deletions
@@ -42,5 +42,5 @@ public interface ParameterAware {
*
* @param parameters a Map of parameters (name/value Strings).
*/
public void setParameters(Map<String, Object> parameters);
public void setParameters(Map<String, String[]> parameters);
}
@@ -135,7 +135,7 @@ public class ServletConfigInterceptor extends AbstractInterceptor implements Str
}
if (action instanceof ParameterAware) {
((ParameterAware) action).setParameters(context.getParameters());
((ParameterAware) action).setParameters((Map)context.getParameters());
}
if (action instanceof ApplicationAware) {
@@ -91,7 +91,7 @@ public class ServletConfigInterceptorTest extends StrutsTestCase {
Map<String, Object> param = new HashMap<String, Object>();
mai.getInvocationContext().setParameters(param);
mock.setParameters(param);
mock.setParameters((Map)param);
control.setVoidCallable();
control.replay();