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

asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d598a6af44 Use java.lang.StringBuffer instead of 
java.lang.StringBuilder here, as  java.util.regex.Matcher needs it.
d598a6af44 is described below

commit d598a6af4456889eb354c43d7b99017f73f00996
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Thu Oct 29 19:28:51 2026 +0200

    Use java.lang.StringBuffer instead of java.lang.StringBuilder here,
    as  java.util.regex.Matcher needs it.
    
    Patch by: me
---
 .../source/org/openoffice/test/vcl/client/VclHookException.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/test/testcommon/source/org/openoffice/test/vcl/client/VclHookException.java 
b/test/testcommon/source/org/openoffice/test/vcl/client/VclHookException.java
index 7754793043..6c70261c6b 100644
--- 
a/test/testcommon/source/org/openoffice/test/vcl/client/VclHookException.java
+++ 
b/test/testcommon/source/org/openoffice/test/vcl/client/VclHookException.java
@@ -353,7 +353,7 @@ public class VclHookException extends RuntimeException {
 
                Pattern pattern = Pattern.compile("\\(\\$([^\\)]*)\\)");
                Matcher matcher = pattern.matcher(originalMsg);
-               StringBuilder result = new StringBuilder();
+               StringBuffer result = new StringBuffer();
                while (matcher.find()) {
                        String rep = properties.getProperty(matcher.group(1), 
matcher.group()).replace("$", "\\$");
                        matcher.appendReplacement(result, rep);

Reply via email to