refactor!: rename parameter

BREAKING CHANGE: This changes named parameters.
This commit is contained in:
oSumAtrIX 2023-05-24 01:47:46 +02:00
parent 28fc6a2ddd
commit 526a3d7c35
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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<String>? = null,
internal val opcodes: Iterable<Opcode?>? = null,
internal val strings: Iterable<String>? = 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