Skip to content

Commit

Permalink
fix: Use correct instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 1, 2023
1 parent 9b30c4b commit 246cf2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object TimelineFilterPatch : BytecodePatch(
addInstructionsWithLabels(
filterInsertIndex, """
const-string v$stringRegister, "$typeName"
invoke-interface { v$filterListRegister, v$stringRegister }, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
invoke-virtual { v$filterListRegister, v$stringRegister }, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
"""
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ object TimelineFilterIntegrationFingerprint : MethodFingerprint(
strings = listOf("BLOCKED_OBJECT_DUMMY"),
opcodes = listOf(
Opcode.CONST_STRING, // "BLOCKED_OBJECT_DUMMY"
Opcode.INVOKE_INTERFACE // List.add(^)
Opcode.INVOKE_VIRTUAL // HashSet.add(^)
)
)

0 comments on commit 246cf2c

Please sign in to comment.