revert: AccessFlag extensions not working with IDE

This commit is contained in:
Lucaskyy 2022-04-14 11:59:23 +02:00 committed by oSumAtrIX
parent 042638a399
commit 0bfb92a0cb
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -4,12 +4,8 @@ import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.builder.BuilderInstruction
import org.jf.dexlib2.builder.MutableMethodImplementation
class AccessFlagExtensions {
companion object {
infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value
infix fun Int.or(other: AccessFlags) = this or other.value
}
}
infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value
infix fun Int.or(other: AccessFlags) = this or other.value
fun MutableMethodImplementation.addInstructions(index: Int, instructions: List<BuilderInstruction>) {
for (i in instructions.lastIndex downTo 0) {