@@ -609,7 +609,7 @@ public void call(Notification<? super R> rNotification) {
609609 }
610610
611611 private Observable <R > executeCommandWithSpecifiedIsolation (final AbstractCommand <R > _cmd ) {
612- if (properties .executionIsolationStrategy ().get (). equals ( ExecutionIsolationStrategy .THREAD ) ) {
612+ if (properties .executionIsolationStrategy ().get () == ExecutionIsolationStrategy .THREAD ) {
613613 // mark that we are executing in a thread (even if we end up being rejected we still were a THREAD execution and not SEMAPHORE)
614614 return Observable .defer (new Func0 <Observable <R >>() {
615615 @ Override
@@ -674,7 +674,7 @@ public void call() {
674674 }).subscribeOn (threadPool .getScheduler (new Func0 <Boolean >() {
675675 @ Override
676676 public Boolean call () {
677- return properties .executionIsolationThreadInterruptOnTimeout ().get () && _cmd .isCommandTimedOut .get (). equals ( TimedOutStatus .TIMED_OUT ) ;
677+ return properties .executionIsolationThreadInterruptOnTimeout ().get () && _cmd .isCommandTimedOut .get () == TimedOutStatus .TIMED_OUT ;
678678 }
679679 }));
680680 } else {
@@ -1209,7 +1209,7 @@ protected TryableSemaphore getFallbackSemaphore() {
12091209 * @return TryableSemaphore
12101210 */
12111211 protected TryableSemaphore getExecutionSemaphore () {
1212- if (properties .executionIsolationStrategy ().get (). equals ( ExecutionIsolationStrategy .SEMAPHORE ) ) {
1212+ if (properties .executionIsolationStrategy ().get () == ExecutionIsolationStrategy .SEMAPHORE ) {
12131213 if (executionSemaphoreOverride == null ) {
12141214 TryableSemaphore _s = executionSemaphorePerCircuit .get (commandKey .name ());
12151215 if (_s == null ) {
@@ -1719,7 +1719,7 @@ public boolean isCircuitBreakerOpen() {
17191719 * @return boolean
17201720 */
17211721 public boolean isExecutionComplete () {
1722- return commandState .get (). equals ( CommandState .TERMINAL ) ;
1722+ return commandState .get () == CommandState .TERMINAL ;
17231723 }
17241724
17251725 /**
0 commit comments