diff --git a/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt b/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt index accc869..b06ee78 100644 --- a/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt +++ b/src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt @@ -21,9 +21,10 @@ data class SignatureResolverResult( * Please note, this method creates a [ClassProxy]. * Use [immutableMethod] where possible. */ - val method get() = definingClassProxy.resolve().methods.first { - it.name == resolvedMethodName - } + val method + get() = definingClassProxy.resolve().methods.first { + it.name == resolvedMethodName + } /** * Returns the **immutable** method by the [resolvedMethodName] from the [definingClassProxy]. @@ -32,8 +33,8 @@ data class SignatureResolverResult( */ val immutableMethod: Method get() = definingClassProxy.immutableClass.methods.first { - it.name == resolvedMethodName - } + it.name == resolvedMethodName + } @Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method. fun findParentMethod(signature: MethodSignature): SignatureResolverResult? { diff --git a/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt b/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt index 32c3b0a..bdeeda5 100644 --- a/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt +++ b/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt @@ -79,7 +79,10 @@ internal class SignatureResolver( } } - private fun compareParameterTypes(signature: Iterable, original: MutableList): Boolean { + private fun compareParameterTypes( + signature: Iterable, + original: MutableList + ): Boolean { return signature.count() != original.size || !(signature.all { a -> original.any { it.startsWith(a) } }) } }