mirror of
https://github.com/github/codeql.git
synced 2025-12-19 02:13:17 +01:00
Apply review findings
This commit is contained in:
@@ -1192,7 +1192,7 @@ open class KotlinUsesExtractor(
|
||||
f.parentClassOrNull?.let { parentClass ->
|
||||
getJavaEquivalentClass(parentClass)?.let { javaClass ->
|
||||
if (javaClass != parentClass) {
|
||||
val jvmName = getSpecialJvmName(f) ?: f.name.asString()
|
||||
val jvmName = getJvmName(f) ?: f.name.asString()
|
||||
// Look for an exact type match...
|
||||
javaClass.declarations.findSubType<IrFunction> { decl ->
|
||||
decl.name.asString() == jvmName &&
|
||||
|
||||
@@ -57,7 +57,7 @@ private val specialFunctions = mapOf(
|
||||
|
||||
private val specialFunctionShortNames = specialFunctions.keys.map { it.functionName }.toSet()
|
||||
|
||||
fun getSpecialJvmName(f: IrFunction): String? {
|
||||
private fun getSpecialJvmName(f: IrFunction): String? {
|
||||
if (specialFunctionShortNames.contains(f.name) && f is IrSimpleFunction) {
|
||||
f.allOverriddenIncludingSelf().forEach { overriddenFunc ->
|
||||
overriddenFunc.parentClassOrNull?.fqNameWhenAvailable?.let { parentFqName ->
|
||||
|
||||
Reference in New Issue
Block a user