mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: use Exception
instead of MethodNotFoundException
This commit is contained in:
parent
f565c4f6a7
commit
2fc4ec4021
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ package app.revanced.patcher.fingerprint.method.impl
|
|||
|
||||
import app.revanced.patcher.data.impl.BytecodeData
|
||||
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.softCompareTo
|
||||
import app.revanced.patcher.fingerprint.Fingerprint
|
||||
|
@ -35,7 +34,7 @@ abstract class MethodFingerprint(
|
|||
* @throws MethodNotFoundException If the resolution of the [Method] has not happened.
|
||||
*/
|
||||
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.")
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue