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

jimjag pushed a commit to branch AOO50X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit a1f87b3bd4fdcc16ae0850ba4f740a296bb456f5
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
    
    (cherry picked from commit d598a6af4456889eb354c43d7b99017f73f00996)
---
 .../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