Remove unreachable code in ServiceStopper#throwFirstException.

This commit is contained in:
Pascal Schumacher 2020-03-08 11:27:24 +01:00
parent 4a4880301f
commit 68355136d2
1 changed files with 0 additions and 3 deletions

View File

@ -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);
} }