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

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git

commit af32706201a25debbbd403ff9bbebbb288c5608c
Author: Lei Zhang <coolbee...@gmail.com>
AuthorDate: Sat Sep 28 17:44:38 2019 +0800

    SCB-1368 Delete useless code
---
 .../servicecomb/pack/alpha/core/fsm/event/base/BaseEvent.java    | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git 
a/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/fsm/event/base/BaseEvent.java
 
b/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/fsm/event/base/BaseEvent.java
index 18ff36a..32a723e 100644
--- 
a/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/fsm/event/base/BaseEvent.java
+++ 
b/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/fsm/event/base/BaseEvent.java
@@ -118,14 +118,7 @@ public abstract class BaseEvent implements Serializable {
     try {
       return mapper.writeValueAsString(this);
     } catch (JsonProcessingException e) {
-    return this.getClass().getSimpleName()+"{" +
-        "serviceName='" + serviceName + '\'' +
-        ", instanceId='" + instanceId + '\'' +
-        ", globalTxId='" + globalTxId + '\'' +
-        ", parentTxId='" + parentTxId + '\'' +
-        ", localTxId='" + localTxId + '\'' +
-        ", createTime=" + createTime +
-        '}';
+      throw new RuntimeException(e);
     }
   }
 

Reply via email to