Set default value of releaseCoroutines in TypeSignatureMapping to true

This commit is contained in:
Ilmir Usmanov
2019-03-06 22:18:17 +03:00
parent 5af2cbeacd
commit 0c0f035241
3 changed files with 1 additions and 7 deletions
@@ -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"