Remove require kotlin annotations

This commit is contained in:
Sergey Mashkov
2019-09-02 17:03:40 +03:00
parent ab7f6997ba
commit 82447c4623

View File

@@ -69,10 +69,6 @@ open class ApplicationReceivePipeline : Pipeline<ApplicationReceiveRequest, Appl
* Receives content for this request.
* @return instance of [T] received from this call, or `null` if content cannot be transformed to the requested type.
*/
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
@kotlin.internal.RequireKotlin("1.3.40",
versionKind = kotlin.internal.RequireKotlinVersionKind.COMPILER_VERSION,
message = "This function requires Kotlin 1.3.40+")
@UseExperimental(ExperimentalStdlibApi::class)
suspend inline fun <reified T : Any> ApplicationCall.receiveOrNull(): T? = receiveOrNull(typeOf<T>())
@@ -81,10 +77,6 @@ suspend inline fun <reified T : Any> ApplicationCall.receiveOrNull(): T? = recei
* @return instance of [T] received from this call.
* @throws ContentTransformationException when content cannot be transformed to the requested type.
*/
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
@kotlin.internal.RequireKotlin("1.3.40",
versionKind = kotlin.internal.RequireKotlinVersionKind.COMPILER_VERSION,
message = "This function requires Kotlin 1.3.40+")
@UseExperimental(ExperimentalStdlibApi::class)
suspend inline fun <reified T : Any> ApplicationCall.receive(): T = receive(typeOf<T>())