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/07/12 03:27:00 UTC

[servicecomb-pack] 02/05: SCB-1321 Simplified the code channel extendsions

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

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

commit 360c527317028ab144f8e762d280fc80307999d0
Author: Willem Jiang <wi...@gmail.com>
AuthorDate: Fri Jul 12 10:16:41 2019 +0800

    SCB-1321 Simplified the code channel extendsions
---
 .../pack/alpha/fsm/channel/ActiveMQActorEventChannel.java           | 6 +-----
 .../servicecomb/pack/alpha/fsm/channel/KafkaActorEventChannel.java  | 6 +-----
 .../servicecomb/pack/alpha/fsm/channel/RedisActorEventChannel.java  | 6 +-----
 3 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/ActiveMQActorEventChannel.java b/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/ActiveMQActorEventChannel.java
index 515f29c..9f0e024 100644
--- a/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/ActiveMQActorEventChannel.java
+++ b/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/ActiveMQActorEventChannel.java
@@ -38,10 +38,6 @@ public class ActiveMQActorEventChannel implements ActorEventChannel {
 
   @Override
   public void send(BaseEvent event){
-    try{
-      throw new UnsupportedOperationException();
-    }catch (Exception e){
-      throw new RuntimeException(e);
-    }
+    throw new UnsupportedOperationException("Doesn't implement yet!");
   }
 }
diff --git a/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/KafkaActorEventChannel.java b/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/KafkaActorEventChannel.java
index 7539069..a4d2525 100644
--- a/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/KafkaActorEventChannel.java
+++ b/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/KafkaActorEventChannel.java
@@ -34,10 +34,6 @@ public class KafkaActorEventChannel implements ActorEventChannel {
 
   @Override
   public void send(BaseEvent event){
-    try{
-      throw new UnsupportedOperationException();
-    }catch (Exception e){
-      throw new RuntimeException(e);
-    }
+    throw new UnsupportedOperationException("Doesn't implement yet!");
   }
 }
diff --git a/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/RedisActorEventChannel.java b/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/RedisActorEventChannel.java
index f055eec..3fcceb4 100644
--- a/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/RedisActorEventChannel.java
+++ b/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel/RedisActorEventChannel.java
@@ -38,10 +38,6 @@ public class RedisActorEventChannel implements ActorEventChannel {
 
   @Override
   public void send(BaseEvent event){
-    try{
-      throw new UnsupportedOperationException();
-    }catch (Exception e){
-      throw new RuntimeException(e);
-    }
+    throw new UnsupportedOperationException("Doesn't implement yet!");
   }
 }