Skip to content

Commit

Permalink
fix: compareSignatureToMethod not matching correctly in case opcode…
Browse files Browse the repository at this point in the history
…s are null
  • Loading branch information
oSumAtrIX committed Apr 8, 2022
1 parent 1ba40ab commit 5ae5e98
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -77,11 +77,8 @@ internal class SignatureResolver(
}
}

return if (signature.opcodes == null) {
null
} else {
method.implementation?.instructions?.scanFor(signature.opcodes)!!
}
return if (signature.opcodes == null) PatternScanResult(0,0)
else method.implementation?.instructions?.scanFor(signature.opcodes)
}

private fun compareParameterTypes(signature: Array<String>, original: MutableList<out CharSequence>): Boolean {
Expand Down

0 comments on commit 5ae5e98

Please sign in to comment.