@SuppressWarnings("unchecked") /* package */static <T> void remove(HystrixRequestContext context, HystrixRequestVariableDefault<T> v) { // remove first so no other threads get it LazyInitializer<?> o = context.state.remove(v); if (o != null) { // this thread removed it so let's execute shutdown v.shutdown((T) o.get()); } }
@SuppressWarnings("unchecked") /* package */static <T> void remove(HystrixRequestContext context, HystrixRequestVariableDefault<T> v) { // remove first so no other threads get it LazyInitializer<?> o = context.state.remove(v); if (o != null) { // this thread removed it so let's execute shutdown v.shutdown((T) o.get()); } }