File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
wire-grpc-mockwebserver/src/main/java/com/squareup/wire/mockwebserver Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import com.squareup.wire.Service
3030import com.squareup.wire.internal.GrpcMessageSink
3131import com.squareup.wire.internal.GrpcMessageSource
3232import java.lang.reflect.Method
33+ import kotlin.reflect.KClass
3334import okhttp3.Call
3435import okhttp3.Callback
3536import okhttp3.Headers.Companion.headersOf
@@ -204,6 +205,10 @@ class GrpcDispatcher(
204205 override fun isExecuted () = error(" unexpected call" )
205206 override fun request () = error(" unexpected call" )
206207 override fun timeout () = Timeout .NONE
208+ override fun <T : Any > tag (type : KClass <T >) = error(" unexpected call" )
209+ override fun <T > tag (type : Class <out T >) = error(" unexpected call" )
210+ override fun <T : Any > tag (type : KClass <T >, computeIfAbsent : () -> T ) = error(" unexpected call" )
211+ override fun <T : Any > tag (type : Class <T >, computeIfAbsent : () -> T ) = error(" unexpected call" )
207212 }
208213
209214 /* *
You can’t perform that action at this time.
0 commit comments