Skip to content

Commit

Permalink
feat: nullability for BytecodePatch constructor (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogadana authored Jul 5, 2022
1 parent 4cc2fa1 commit 4ea030d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>()

0 comments on commit 4ea030d

Please sign in to comment.