Kapt: minor, remove unneeded check
Most likely it has been made obsolete by KT-27936 where we started to generate all inner class names correctly. #KT-61080 Fixed
This commit is contained in:
committed by
Space Team
parent
1fe77705b0
commit
7ca2df3ff9
@@ -49,7 +49,7 @@ class KaptTreeMaker(context: Context, kaptContext: KaptContextForStubGeneration)
|
||||
|
||||
@Suppress("FunctionName")
|
||||
fun FqName(internalOrFqName: String): JCTree.JCExpression {
|
||||
val path = getQualifiedName(internalOrFqName).convertSpecialFqName().split('.')
|
||||
val path = getQualifiedName(internalOrFqName).split('.')
|
||||
assert(path.isNotEmpty())
|
||||
return FqName(path)
|
||||
}
|
||||
@@ -141,15 +141,6 @@ class KaptTreeMaker(context: Context, kaptContext: KaptContextForStubGeneration)
|
||||
}
|
||||
}
|
||||
|
||||
private fun String.convertSpecialFqName(): String {
|
||||
// Hard-coded in ImplementationBodyCodegen, KOTLIN_MARKER_INTERFACES
|
||||
if (this == "kotlin.jvm.internal.markers.KMutableMap\$Entry") {
|
||||
return replace('$', '.')
|
||||
}
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
private fun convertBuiltinType(type: Type): JCTree.JCExpression? {
|
||||
val typeTag = when (type) {
|
||||
BYTE_TYPE -> TypeTag.BYTE
|
||||
@@ -189,4 +180,4 @@ private class DisposableReference<T : Any>(obj: T) : Disposable {
|
||||
override fun dispose() {
|
||||
obj = null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user