fix: Only allow setting MethodFingerprint#result privately

BREAKING CHANGE: The `MethodFingerprint#result` member can now only be set inside `MethodFingerprint`.
This commit is contained in:
oSumAtrIX 2023-10-23 01:32:28 +02:00
parent 54a2f8f16f
commit aed1eac315
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 1 additions and 1 deletions

View file

@ -178,7 +178,6 @@ public abstract class app/revanced/patcher/fingerprint/MethodFingerprint {
public final fun getResult ()Lapp/revanced/patcher/fingerprint/MethodFingerprintResult;
public final fun resolve (Lapp/revanced/patcher/data/BytecodeContext;Lcom/android/tools/smali/dexlib2/iface/ClassDef;)Z
public final fun resolve (Lapp/revanced/patcher/data/BytecodeContext;Lcom/android/tools/smali/dexlib2/iface/Method;Lcom/android/tools/smali/dexlib2/iface/ClassDef;)Z
public final fun setResult (Lapp/revanced/patcher/fingerprint/MethodFingerprintResult;)V
}
public final class app/revanced/patcher/fingerprint/MethodFingerprint$Companion {

View file

@ -40,6 +40,7 @@ abstract class MethodFingerprint(
* The result of the [MethodFingerprint].
*/
var result: MethodFingerprintResult? = null
private set
/**
* Resolve a [MethodFingerprint] using the lookup map built by [initializeLookupMaps].