mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-18 17:03:56 +00:00
fix: use Exception instead of MethodNotFoundException
This commit is contained in:
@@ -2,7 +2,6 @@ package app.revanced.patcher.fingerprint.method.impl
|
|||||||
|
|
||||||
import app.revanced.patcher.data.impl.BytecodeData
|
import app.revanced.patcher.data.impl.BytecodeData
|
||||||
import app.revanced.patcher.data.impl.MethodNotFoundException
|
import app.revanced.patcher.data.impl.MethodNotFoundException
|
||||||
import app.revanced.patcher.data.impl.proxy
|
|
||||||
import app.revanced.patcher.extensions.MethodFingerprintExtensions.name
|
import app.revanced.patcher.extensions.MethodFingerprintExtensions.name
|
||||||
import app.revanced.patcher.extensions.softCompareTo
|
import app.revanced.patcher.extensions.softCompareTo
|
||||||
import app.revanced.patcher.fingerprint.Fingerprint
|
import app.revanced.patcher.fingerprint.Fingerprint
|
||||||
@@ -35,7 +34,7 @@ abstract class MethodFingerprint(
|
|||||||
* @throws MethodNotFoundException If the resolution of the [Method] has not happened.
|
* @throws MethodNotFoundException If the resolution of the [Method] has not happened.
|
||||||
*/
|
*/
|
||||||
var result: MethodFingerprintResult? = null
|
var result: MethodFingerprintResult? = null
|
||||||
get() = field ?: throw MethodNotFoundException("${this.name} has not been resolved yet.")
|
get() = field ?: throw Exception("${this.name} has not been resolved yet.")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user