Skip to content

Commit

Permalink
fix: use Exception instead of MethodNotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 26, 2022
1 parent f565c4f commit 2fc4ec4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.")
}

/**
Expand Down

0 comments on commit 2fc4ec4

Please sign in to comment.