From 7882a8d928cad8de8cfea711947fc02659549d20 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 31 Aug 2022 20:30:31 +0200 Subject: [PATCH] feat: nullable parameters Signed-off-by: oSumAtrIX --- .../patcher/annotation/CompatibilityAnnotation.kt | 2 +- .../patcher/fingerprint/method/impl/MethodFingerprint.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/annotation/CompatibilityAnnotation.kt b/src/main/kotlin/app/revanced/patcher/annotation/CompatibilityAnnotation.kt index 8ec104b..a053f83 100644 --- a/src/main/kotlin/app/revanced/patcher/annotation/CompatibilityAnnotation.kt +++ b/src/main/kotlin/app/revanced/patcher/annotation/CompatibilityAnnotation.kt @@ -24,5 +24,5 @@ annotation class Compatibility( @MustBeDocumented annotation class Package( val name: String, - val versions: Array + val versions: Array = [], ) \ No newline at end of file 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 bcaee8e..1e2884a 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 @@ -22,10 +22,10 @@ import org.jf.dexlib2.iface.Method * A `null` opcode is equals to an unknown opcode. */ abstract class MethodFingerprint( - internal val returnType: String?, - internal val access: Int?, - internal val parameters: Iterable?, - internal val opcodes: Iterable?, + internal val returnType: String? = null, + internal val access: Int? = null, + internal val parameters: Iterable? = null, + internal val opcodes: Iterable? = null, internal val strings: Iterable? = null, internal val customFingerprint: ((methodDef: Method) -> Boolean)? = null ) : Fingerprint {