diff options
Diffstat (limited to 'platform/script-debugger/backend/src/org/jetbrains/rpc/NestedCommandCallbackWithResponse.java')
-rw-r--r-- | platform/script-debugger/backend/src/org/jetbrains/rpc/NestedCommandCallbackWithResponse.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/script-debugger/backend/src/org/jetbrains/rpc/NestedCommandCallbackWithResponse.java b/platform/script-debugger/backend/src/org/jetbrains/rpc/NestedCommandCallbackWithResponse.java index ee5640ce91d9..d089bda2b0e5 100644 --- a/platform/script-debugger/backend/src/org/jetbrains/rpc/NestedCommandCallbackWithResponse.java +++ b/platform/script-debugger/backend/src/org/jetbrains/rpc/NestedCommandCallbackWithResponse.java @@ -2,13 +2,14 @@ package org.jetbrains.rpc; import com.intellij.openapi.util.AsyncResult; import com.intellij.util.PairConsumer; +import org.jetbrains.annotations.Nullable; final class NestedCommandCallbackWithResponse<SUCCESS_RESPONSE, RESULT, MAIN_RESULT, ERROR_DETAILS> extends CommandCallbackWithResponseBase<SUCCESS_RESPONSE, AsyncResult<MAIN_RESULT>, RESULT, ERROR_DETAILS> { private final PairConsumer<RESULT, AsyncResult<MAIN_RESULT>> consumer; - public NestedCommandCallbackWithResponse(AsyncResult<MAIN_RESULT> result, String methodName, PairConsumer<RESULT, AsyncResult<MAIN_RESULT>> consumer) { - super(result, methodName, null); + public NestedCommandCallbackWithResponse(AsyncResult<MAIN_RESULT> result, String methodName, PairConsumer<RESULT, AsyncResult<MAIN_RESULT>> consumer, @Nullable ErrorConsumer<AsyncResult<MAIN_RESULT>, ERROR_DETAILS> errorConsumer) { + super(result, methodName, errorConsumer); this.consumer = consumer; } |