You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/09/30 10:10:33 UTC
[servicecomb-pack] 36/42: SCB-1368 Delete useless code
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 <co...@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);
}
}