Reuse TransformationMethodVisitor in ABI gen plugin

This commit is contained in:
Alexey Tsvetkov
2018-12-07 19:28:53 +03:00
parent 82eb7c17e6
commit 497df17eb7
3 changed files with 22 additions and 33 deletions
@@ -33,8 +33,9 @@ abstract class TransformationMethodVisitor(
name: String,
desc: String,
signature: String?,
exceptions: Array<String>?
) : MethodVisitor(Opcodes.ASM5) {
exceptions: Array<out String>?,
api: Int = Opcodes.ASM5
) : MethodVisitor(api) {
private val methodNode = MethodNode(access, name, desc, signature, exceptions).apply {
localVariables = ArrayList(5)