mirror of
https://github.com/jlengrand/ktor.git
synced 2026-03-10 08:31:20 +00:00
Remove require kotlin annotations
This commit is contained in:
@@ -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>())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user