diff --git a/hystrix-core/src/main/java/com/netflix/hystrix/AbstractCommand.java b/hystrix-core/src/main/java/com/netflix/hystrix/AbstractCommand.java index 95cd21e39..7382c0e64 100644 --- a/hystrix-core/src/main/java/com/netflix/hystrix/AbstractCommand.java +++ b/hystrix-core/src/main/java/com/netflix/hystrix/AbstractCommand.java @@ -931,8 +931,6 @@ protected boolean shouldOutputOnNextEvents() { return false; } - private static final HystrixTimeoutException TIMEOUT_EXCEPTION_INSTANCE = new HystrixTimeoutException(); - private static class HystrixObservableTimeoutOperator implements Operator { final AbstractCommand originalCommand; @@ -955,7 +953,7 @@ public Subscriber call(final Subscriber child) { @Override public void run() { - child.onError(TIMEOUT_EXCEPTION_INSTANCE); + child.onError(new HystrixTimeoutException()); } });