You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/05/16 05:21:19 UTC
[activemq] branch activemq-5.15.x updated: Remove unreachable code
in ServiceStopper#throwFirstException.
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
new 2536d25 Remove unreachable code in ServiceStopper#throwFirstException.
2536d25 is described below
commit 2536d258e5e8ffa0c50ef807d030c75def765990
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Mar 8 11:27:24 2020 +0100
Remove unreachable code in ServiceStopper#throwFirstException.
(cherry picked from commit 68355136d200f12f8416309975783267d74cf036)
---
.../src/main/java/org/apache/activemq/util/ServiceStopper.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/activemq-client/src/main/java/org/apache/activemq/util/ServiceStopper.java b/activemq-client/src/main/java/org/apache/activemq/util/ServiceStopper.java
index 28ed572..3e07feb 100644
--- a/activemq-client/src/main/java/org/apache/activemq/util/ServiceStopper.java
+++ b/activemq-client/src/main/java/org/apache/activemq/util/ServiceStopper.java
@@ -82,9 +82,6 @@ public class ServiceStopper {
if (firstException instanceof Exception) {
Exception e = (Exception)firstException;
throw e;
- } else if (firstException instanceof RuntimeException) {
- RuntimeException e = (RuntimeException)firstException;
- throw e;
} else {
throw new RuntimeException("Unknown type of exception: " + firstException, firstException);
}