From 7475f2fb13f7f8b8e2bfbe48a58c2cca6b225392 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 30 Nov 2023 14:45:34 +0530 Subject: fix: replace `Enum.values()` with `Enum.entries` --- .../src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openpgp-ktx/src/main/java/org') diff --git a/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt b/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt index a1a4a81b..f4af90ba 100644 --- a/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt +++ b/openpgp-ktx/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.kt @@ -60,7 +60,7 @@ public class OpenPgpSignatureResult : Parcelable { // backward compatibility for this exact version if (version > 2) { senderStatusResult = - readEnumWithNullAndFallback(source, SenderStatusResult.values(), SenderStatusResult.UNKNOWN) + readEnumWithNullAndFallback(source, SenderStatusResult.entries, SenderStatusResult.UNKNOWN) confirmedUserIds = source.createStringArrayList() } else { senderStatusResult = SenderStatusResult.UNKNOWN @@ -74,7 +74,7 @@ public class OpenPgpSignatureResult : Parcelable { } autocryptPeerentityResult = if (version > 4) { - readEnumWithNullAndFallback(source, AutocryptPeerResult.values(), null) + readEnumWithNullAndFallback(source, AutocryptPeerResult.entries, null) } else { null } -- cgit v1.2.3