mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
feat: nullability for BytecodePatch
constructor (#59)
This commit is contained in:
parent
4cc2fa17f5
commit
4ea030d0a0
2 changed files with 3 additions and 3 deletions
|
@ -285,7 +285,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||
data.resourceData
|
||||
} else {
|
||||
val bytecodeData = data.bytecodeData
|
||||
(patchInstance as BytecodePatch).fingerprints.resolve(bytecodeData, bytecodeData.classes.internalClasses)
|
||||
(patchInstance as BytecodePatch).fingerprints?.resolve(bytecodeData, bytecodeData.classes.internalClasses)
|
||||
bytecodeData
|
||||
}
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@ import app.revanced.patcher.patch.Patch
|
|||
* @param fingerprints A list of [MethodFingerprint] this patch relies on.
|
||||
*/
|
||||
abstract class BytecodePatch(
|
||||
internal val fingerprints: Iterable<MethodFingerprint>
|
||||
) : Patch<BytecodeData>()
|
||||
internal val fingerprints: Iterable<MethodFingerprint>? = null
|
||||
) : Patch<BytecodeData>()
|
||||
|
|
Loading…
Reference in a new issue