From 526a3d7c359e2d95d26756da0f88d5ce975f5d9b Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 24 May 2023 01:47:46 +0200 Subject: [PATCH] refactor!: rename parameter BREAKING CHANGE: This changes named parameters. --- .../patcher/fingerprint/method/impl/MethodFingerprint.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt index a3baa0f..f297f95 100644 --- a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt +++ b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt @@ -21,7 +21,7 @@ private typealias StringsScanResult = MethodFingerprintResult.MethodFingerprintS /** * Represents the [MethodFingerprint] for a method. * @param returnType The return type of the method. - * @param access The access flags of the method. + * @param accessFlags The access flags of the method. * @param parameters The parameters of the method. * @param opcodes The list of opcodes of the method. * @param strings A list of strings which a method contains. @@ -30,7 +30,7 @@ private typealias StringsScanResult = MethodFingerprintResult.MethodFingerprintS */ abstract class MethodFingerprint( internal val returnType: String? = null, - internal val access: Int? = null, + internal val accessFlags: Int? = null, internal val parameters: Iterable? = null, internal val opcodes: Iterable? = null, internal val strings: Iterable? = null, @@ -86,7 +86,7 @@ abstract class MethodFingerprint( if (methodFingerprint.returnType != null && !method.returnType.startsWith(methodFingerprint.returnType)) return false - if (methodFingerprint.access != null && methodFingerprint.access != method.accessFlags) + if (methodFingerprint.accessFlags != null && methodFingerprint.accessFlags != method.accessFlags) return false