feat: nullable parameters

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-08-31 20:30:31 +02:00
parent cc3d32748b
commit 7882a8d928
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 5 additions and 5 deletions

View file

@ -24,5 +24,5 @@ annotation class Compatibility(
@MustBeDocumented @MustBeDocumented
annotation class Package( annotation class Package(
val name: String, val name: String,
val versions: Array<String> val versions: Array<String> = [],
) )

View file

@ -22,10 +22,10 @@ import org.jf.dexlib2.iface.Method
* A `null` opcode is equals to an unknown opcode. * A `null` opcode is equals to an unknown opcode.
*/ */
abstract class MethodFingerprint( abstract class MethodFingerprint(
internal val returnType: String?, internal val returnType: String? = null,
internal val access: Int?, internal val access: Int? = null,
internal val parameters: Iterable<String>?, internal val parameters: Iterable<String>? = null,
internal val opcodes: Iterable<Opcode?>?, internal val opcodes: Iterable<Opcode?>? = null,
internal val strings: Iterable<String>? = null, internal val strings: Iterable<String>? = null,
internal val customFingerprint: ((methodDef: Method) -> Boolean)? = null internal val customFingerprint: ((methodDef: Method) -> Boolean)? = null
) : Fingerprint { ) : Fingerprint {