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-scxml.git


The following commit(s) were added to refs/heads/master by this push:
     new af2e59af Replace internal StringBuffer with StringBuilder
af2e59af is described below

commit af2e59af8825f5041a587bc5c8626ac12e4b1d53
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Dec 10 10:45:31 2023 -0500

    Replace internal StringBuffer with StringBuilder
---
 src/changes/changes.xml                                              | 1 +
 src/main/java/org/apache/commons/scxml2/env/SimpleErrorReporter.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8f7e98cb..a41b126b 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -253,6 +253,7 @@
       <action type="fix" dev="ggregory" due-to="step-security-bot, Gary 
Gregory">
         [StepSecurity] ci: Harden GitHub Actions #133.
       </action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Replace internal 
StringBuffer with StringBuilder.</action>
       <action type="update" dev="henrib">Bump commons-jexl3 from 3.2.1 to 
3.3</action>
       <action type="update" dev="ggregory" due-to="Dependabot">Bump 
actions/cache from 2.1.4 to current #31, #47, #50, #78.</action>
       <action type="update" dev="ggregory" due-to="Dependabot, Gary 
Gregory">Bump actions/checkout from 2 to current #34, #75.</action>
diff --git 
a/src/main/java/org/apache/commons/scxml2/env/SimpleErrorReporter.java 
b/src/main/java/org/apache/commons/scxml2/env/SimpleErrorReporter.java
index 10988861..764215d8 100644
--- a/src/main/java/org/apache/commons/scxml2/env/SimpleErrorReporter.java
+++ b/src/main/java/org/apache/commons/scxml2/env/SimpleErrorReporter.java
@@ -80,7 +80,7 @@ public class SimpleErrorReporter implements ErrorReporter, 
Serializable {
         //Note: the if-then-else below is based on the actual usage
         // (codebase search), it has to be kept up-to-date as the code changes
         final String errCode = errorCode.intern();
-        final StringBuffer msg = new StringBuffer();
+        final StringBuilder msg = new StringBuilder();
         msg.append(errCode).append(" (");
         msg.append(errDetail).append("): ");
         if (errCode == ErrorConstants.NO_INITIAL) {

Reply via email to