From 2fc4ec40217a917ea6106ddc87be332f725aa13c Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 26 Jun 2022 17:59:01 +0200 Subject: [PATCH] fix: use `Exception` instead of `MethodNotFoundException` --- .../patcher/fingerprint/method/impl/MethodFingerprint.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt index 7a376ac..a727b37 100644 --- a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt +++ b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt @@ -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.") } /**