This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch fix/generics
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 337da2d7713db42a05632ac7812c4899035c0824
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Sat Nov 30 15:32:45 2024 +0100

    NOJIRA Uses proper filed declarations and fixes generics
---
 .../template/TemplateRenderingContext.java         | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git 
a/core/src/main/java/org/apache/struts2/components/template/TemplateRenderingContext.java
 
b/core/src/main/java/org/apache/struts2/components/template/TemplateRenderingContext.java
index 50251a106..276d51dc7 100644
--- 
a/core/src/main/java/org/apache/struts2/components/template/TemplateRenderingContext.java
+++ 
b/core/src/main/java/org/apache/struts2/components/template/TemplateRenderingContext.java
@@ -18,33 +18,33 @@
  */
 package org.apache.struts2.components.template;
 
-import java.io.Writer;
-import java.util.Map;
-
 import org.apache.struts2.components.UIBean;
-
 import org.apache.struts2.util.ValueStack;
 
+import java.io.Writer;
+import java.util.Map;
+
 /**
  * Context used when rendering templates.
  */
 public class TemplateRenderingContext {
-    Template template;
-    ValueStack stack;
-    Map parameters;
-    UIBean tag;
-    Writer writer;
+
+    private final Template template;
+    private final ValueStack stack;
+    private final Map<String, Object> parameters;
+    private final UIBean tag;
+    private final Writer writer;
 
     /**
      * Constructor
      *
-     * @param template  the template.
-     * @param writer    the writer.
-     * @param stack     OGNL value stack.
-     * @param params    parameters to this template.
-     * @param tag       the tag UI component.
+     * @param template the template.
+     * @param writer   the writer.
+     * @param stack    OGNL value stack.
+     * @param params   parameters to this template.
+     * @param tag      the tag UI component.
      */
-    public TemplateRenderingContext(Template template, Writer writer, 
ValueStack stack, Map params, UIBean tag) {
+    public TemplateRenderingContext(Template template, Writer writer, 
ValueStack stack, Map<String, Object> params, UIBean tag) {
         this.template = template;
         this.writer = writer;
         this.stack = stack;
@@ -60,7 +60,7 @@ public class TemplateRenderingContext {
         return stack;
     }
 
-    public Map getParameters() {
+    public Map<String, Object> getParameters() {
         return parameters;
     }
 

Reply via email to