From 55d694579ac2718b9e2c61ca5f38419c3775ef87 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 26 Aug 2023 19:42:33 +0200 Subject: [PATCH] perf: compare types of classes --- src/main/kotlin/app/revanced/patcher/data/BytecodeContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/data/BytecodeContext.kt b/src/main/kotlin/app/revanced/patcher/data/BytecodeContext.kt index 66aa19c..deec951 100644 --- a/src/main/kotlin/app/revanced/patcher/data/BytecodeContext.kt +++ b/src/main/kotlin/app/revanced/patcher/data/BytecodeContext.kt @@ -116,7 +116,7 @@ class BytecodeContext internal constructor(private val options: PatcherOptions) null, null ).classes.forEach classDef@{ classDef -> - val existingClass = classes.find { it == classDef } ?: run { + val existingClass = classes.find { it.type == classDef.type } ?: run { logger.fine("Merging $classDef") classes.add(classDef) return@classDef