Uses existing instance instead of creating a new one
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/3b73544a Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/3b73544a Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/3b73544a Branch: refs/heads/master Commit: 3b73544a8ff5e9d96885147bf25c7c2598ac6b21 Parents: 5497422 Author: Lukasz Lenart <[email protected]> Authored: Fri Mar 17 07:49:33 2017 +0100 Committer: Lukasz Lenart <[email protected]> Committed: Fri Mar 17 07:49:33 2017 +0100 ---------------------------------------------------------------------- core/src/main/java/com/opensymphony/xwork2/ActionSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/3b73544a/core/src/main/java/com/opensymphony/xwork2/ActionSupport.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/com/opensymphony/xwork2/ActionSupport.java b/core/src/main/java/com/opensymphony/xwork2/ActionSupport.java index 0434469..cb1ac47 100644 --- a/core/src/main/java/com/opensymphony/xwork2/ActionSupport.java +++ b/core/src/main/java/com/opensymphony/xwork2/ActionSupport.java @@ -275,7 +275,7 @@ public class ActionSupport implements Action, Validateable, ValidationAware, Tex */ protected TextProvider getTextProvider() { if (textProvider == null) { - TextProviderFactory tpf = container.inject(TextProviderFactory.class); + TextProviderFactory tpf = container.getInstance(TextProviderFactory.class); textProvider = tpf.createInstance(getClass()); } return textProvider;
