You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by ti...@apache.org on 2022/11/27 04:02:22 UTC

[incubator-eventmesh] branch revert-2262-master created (now da2fc60e)

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

timcross pushed a change to branch revert-2262-master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


      at da2fc60e Revert "[ISSUE #2245] Change to collection "StringBuilder""

This branch includes the following new commits:

     new da2fc60e Revert "[ISSUE #2245] Change to collection "StringBuilder""

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org


[incubator-eventmesh] 01/01: Revert "[ISSUE #2245] Change to collection "StringBuilder""

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

timcross pushed a commit to branch revert-2262-master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git

commit da2fc60e69d93d7250836883100f640c526b08a5
Author: 刘威 <51...@users.noreply.github.com>
AuthorDate: Sun Nov 27 12:02:16 2022 +0800

    Revert "[ISSUE #2245] Change to collection "StringBuilder""
    
    This reverts commit 60b5d1cb04cb4b956e6f979317153c46dd552b04.
---
 .../org/apache/eventmesh/webhook/admin/FileWebHookConfigOperation.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-webhook/eventmesh-webhook-admin/src/main/java/org/apache/eventmesh/webhook/admin/FileWebHookConfigOperation.java b/eventmesh-webhook/eventmesh-webhook-admin/src/main/java/org/apache/eventmesh/webhook/admin/FileWebHookConfigOperation.java
index ff9fb0e7..93192b55 100644
--- a/eventmesh-webhook/eventmesh-webhook-admin/src/main/java/org/apache/eventmesh/webhook/admin/FileWebHookConfigOperation.java
+++ b/eventmesh-webhook/eventmesh-webhook-admin/src/main/java/org/apache/eventmesh/webhook/admin/FileWebHookConfigOperation.java
@@ -133,7 +133,7 @@ public class FileWebHookConfigOperation implements WebHookConfigOperation {
     }
 
     private WebHookConfig getWebHookConfigFromFile(File webhookConfigFile) {
-        StringBuilder fileContent = new StringBuilder();
+        StringBuffer fileContent = new StringBuffer();
         try (BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(webhookConfigFile)))) {
             String line = null;
             while ((line = br.readLine()) != null) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org