mirror of https://github.com/apache/activemq.git
Remove unreachable code in ServiceStopper#throwFirstException.
This commit is contained in:
parent
4a4880301f
commit
68355136d2
|
@ -82,9 +82,6 @@ public class ServiceStopper {
|
||||||
if (firstException instanceof Exception) {
|
if (firstException instanceof Exception) {
|
||||||
Exception e = (Exception)firstException;
|
Exception e = (Exception)firstException;
|
||||||
throw e;
|
throw e;
|
||||||
} else if (firstException instanceof RuntimeException) {
|
|
||||||
RuntimeException e = (RuntimeException)firstException;
|
|
||||||
throw e;
|
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("Unknown type of exception: " + firstException, firstException);
|
throw new RuntimeException("Unknown type of exception: " + firstException, firstException);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue