Skip to content

Commit

Permalink
fix: Only allow setting MethodFingerprint#result privately
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The `MethodFingerprint#result` member can now only be set inside `MethodFingerprint`.
  • Loading branch information
oSumAtrIX committed Oct 22, 2023
1 parent 54a2f8f commit aed1eac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion api/revanced-patcher.api
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit aed1eac

Please sign in to comment.