perf: compare types of classes

This commit is contained in:
oSumAtrIX 2023-08-26 19:42:33 +02:00
parent 86db64edff
commit 55d694579a
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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