Uses proper type
Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/46eadcb8 Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/46eadcb8 Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/46eadcb8 Branch: refs/heads/master Commit: 46eadcb89a627dae5fc0b3d13abdd95c10ecf06b Parents: 6992509 Author: Lukasz Lenart <lukasz.len...@gmail.com> Authored: Tue Nov 1 18:07:59 2016 +0100 Committer: Lukasz Lenart <lukasz.len...@gmail.com> Committed: Tue Nov 1 18:07:59 2016 +0100 ---------------------------------------------------------------------- .../java/org/apache/struts2/portlet/example/ExampleAction.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts-examples/blob/46eadcb8/portlet/src/main/java/org/apache/struts2/portlet/example/ExampleAction.java ---------------------------------------------------------------------- diff --git a/portlet/src/main/java/org/apache/struts2/portlet/example/ExampleAction.java b/portlet/src/main/java/org/apache/struts2/portlet/example/ExampleAction.java index d3e0741..ae95f55 100644 --- a/portlet/src/main/java/org/apache/struts2/portlet/example/ExampleAction.java +++ b/portlet/src/main/java/org/apache/struts2/portlet/example/ExampleAction.java @@ -20,10 +20,9 @@ */ package org.apache.struts2.portlet.example; -import java.util.Map; - import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; +import org.apache.struts2.dispatcher.HttpParameters; public class ExampleAction extends ActionSupport { @@ -33,7 +32,7 @@ public class ExampleAction extends ActionSupport { return name; } - public Map getRenderParameters() { + public HttpParameters getRenderParameters() { return ActionContext.getContext().getParameters(); } }