aboutsummaryrefslogtreecommitdiffstats
path: root/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt')
-rw-r--r--openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt b/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
index 45ee5755..6690fe35 100644
--- a/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
+++ b/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/AutocryptPeerUpdate.kt
@@ -25,6 +25,7 @@ public class AutocryptPeerUpdate() : Parcelable {
this.preferEncrypt = preferEncrypt
}
+ @Suppress("UNUSED_PARAMETER")
private constructor(source: Parcel, version: Int) : this() {
keyData = source.createByteArray()
effectiveDate = if (source.readInt() != 0) Date(source.readLong()) else null
@@ -85,7 +86,8 @@ public class AutocryptPeerUpdate() : Parcelable {
public companion object CREATOR : Creator<AutocryptPeerUpdate> {
private const val PARCELABLE_VERSION = 1
- override fun createFromParcel(source: Parcel): AutocryptPeerUpdate? {
+
+ override fun createFromParcel(source: Parcel): AutocryptPeerUpdate {
val version = source.readInt() // parcelableVersion
val parcelableSize = source.readInt()
val startPosition = source.dataPosition()
@@ -95,7 +97,7 @@ public class AutocryptPeerUpdate() : Parcelable {
return vr
}
- override fun newArray(size: Int): Array<AutocryptPeerUpdate?>? {
+ override fun newArray(size: Int): Array<AutocryptPeerUpdate?> {
return arrayOfNulls(size)
}
}