You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2019/12/29 08:10:32 UTC

[struts] 14/14: WW-5049 Reverts to static final as this will be refactored anyway

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

lukaszlenart pushed a commit to branch WW-5049-velocity-plugin
in repository https://gitbox.apache.org/repos/asf/struts.git

commit a456b1fdd569a65307de6add29fe20700f496fd8
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Dec 26 09:39:47 2019 +0100

    WW-5049 Reverts to static final as this will be refactored anyway
---
 .../main/java/org/apache/struts2/views/velocity/VelocityManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
index b653380..6cbbaed 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
@@ -524,7 +524,7 @@ public class VelocityManager {
         sb.append(clazz.getName()).append(",");
     }
 
-    private String replace(String string, String oldString, String newString) {
+    private static final String replace(String string, String oldString, String newString) {
         if (string == null) {
             return null;
         }