Remove deprecated JvmDefault annotations (#481)
This commit is contained in:
Родитель
9747f7d343
Коммит
d7d09987f0
|
@ -32,13 +32,13 @@ dependencies {
|
|||
tasks.named('compileKotlin').configure {
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
freeCompilerArgs = ['-Xjvm-default=enable']
|
||||
freeCompilerArgs = ['-Xjvm-default=all']
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('compileTestKotlin').configure {
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
freeCompilerArgs = ['-Xjvm-default=enable']
|
||||
freeCompilerArgs = ['-Xjvm-default=all']
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ compileTestKotlin {
|
|||
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
freeCompilerArgs = ['-Xjvm-default=enable']
|
||||
freeCompilerArgs = ['-Xjvm-default=all']
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ description = 'Provides a minimal Thrift runtime to support classes generated by
|
|||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
freeCompilerArgs = ['-Xjvm-default=enable']
|
||||
freeCompilerArgs = ['-Xjvm-default=all']
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,8 +23,6 @@ package com.microsoft.thrifty.internal
|
|||
import kotlinx.coroutines.CoroutineDispatcher
|
||||
import okio.IOException
|
||||
|
||||
expect annotation class DefaultMethod()
|
||||
|
||||
expect class ProtocolException(message: String) : IOException
|
||||
|
||||
expect val DefaultDispatcher: CoroutineDispatcher
|
|
@ -20,7 +20,6 @@
|
|||
*/
|
||||
package com.microsoft.thrifty.protocol
|
||||
|
||||
import com.microsoft.thrifty.internal.DefaultMethod
|
||||
import okio.ByteString
|
||||
import okio.Closeable
|
||||
import okio.IOException
|
||||
|
@ -157,7 +156,6 @@ interface Protocol : Closeable {
|
|||
@Throws(IOException::class)
|
||||
fun flush()
|
||||
|
||||
@DefaultMethod
|
||||
fun reset() {
|
||||
// to be implemented by implementations as needed
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
*/
|
||||
package com.microsoft.thrifty.transport
|
||||
|
||||
import com.microsoft.thrifty.internal.DefaultMethod
|
||||
import okio.Closeable
|
||||
import okio.IOException
|
||||
|
||||
|
@ -29,7 +28,6 @@ interface Transport : Closeable {
|
|||
fun read(buffer: ByteArray, offset: Int, count: Int): Int
|
||||
|
||||
@Throws(IOException::class)
|
||||
@DefaultMethod
|
||||
fun write(data: ByteArray) {
|
||||
write(data, 0, data.size)
|
||||
}
|
||||
|
|
|
@ -23,8 +23,6 @@ package com.microsoft.thrifty.internal
|
|||
import kotlinx.coroutines.CoroutineDispatcher
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
|
||||
actual typealias DefaultMethod = JvmDefault
|
||||
|
||||
actual typealias ProtocolException = java.net.ProtocolException
|
||||
|
||||
actual val DefaultDispatcher: CoroutineDispatcher = Dispatchers.IO
|
||||
|
|
Загрузка…
Ссылка в новой задаче