Set default value of releaseCoroutines in TypeSignatureMapping to true
This commit is contained in:
@@ -1241,10 +1241,6 @@ class KotlinTypeMapper @JvmOverloads constructor(
|
||||
throw IllegalStateException(generateErrorMessageForErrorType(kotlinType, descriptor))
|
||||
}
|
||||
|
||||
override fun releaseCoroutines(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
override fun preprocessType(kotlinType: KotlinType): KotlinType? {
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -163,6 +163,4 @@ internal object TypeMappingConfigurationImpl : TypeMappingConfiguration<JvmType>
|
||||
override fun processErrorType(kotlinType: KotlinType, descriptor: ClassDescriptor) {
|
||||
// DO nothing
|
||||
}
|
||||
|
||||
override fun releaseCoroutines() = false
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ interface TypeMappingConfiguration<out T : Any> {
|
||||
// returns null when type doesn't need to be preprocessed
|
||||
fun preprocessType(kotlinType: KotlinType): KotlinType? = null
|
||||
|
||||
fun releaseCoroutines(): Boolean
|
||||
fun releaseCoroutines(): Boolean = true
|
||||
}
|
||||
|
||||
const val NON_EXISTENT_CLASS_NAME = "error/NonExistentClass"
|
||||
|
||||
Reference in New Issue
Block a user