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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jelly.git


The following commit(s) were added to refs/heads/master by this push:
     new f6a6b242 Update from deprecated code
f6a6b242 is described below

commit f6a6b242b80d12a0009d668ad29ae2e1a5cb32a9
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 29 17:55:28 2025 -0500

    Update from deprecated code
---
 .../src/main/java/org/apache/commons/jelly/tags/util/ReplaceTag.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/jelly-tags/util/src/main/java/org/apache/commons/jelly/tags/util/ReplaceTag.java
 
b/jelly-tags/util/src/main/java/org/apache/commons/jelly/tags/util/ReplaceTag.java
index b3500eb2..571b33b1 100644
--- 
a/jelly-tags/util/src/main/java/org/apache/commons/jelly/tags/util/ReplaceTag.java
+++ 
b/jelly-tags/util/src/main/java/org/apache/commons/jelly/tags/util/ReplaceTag.java
@@ -22,7 +22,7 @@ import org.apache.commons.jelly.MissingAttributeException;
 import org.apache.commons.jelly.TagSupport;
 import org.apache.commons.jelly.XMLOutput;
 import org.apache.commons.jelly.expression.Expression;
-import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.Strings;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.xml.sax.SAXException;
@@ -84,7 +84,7 @@ public class ReplaceTag extends TagSupport {
 
         // set the result in the context, or output it
         if (answer != null) {
-            final String stringAnswer = StringUtils.replace(answer.toString(), 
oldString, newString);
+            final String stringAnswer = Strings.CS.replace(answer.toString(), 
oldString, newString);
             if ( var != null ) {
                 context.setVariable(var, stringAnswer);
             } else {

Reply via email to