suppress mutable warnings for primitive arrays (we don't wanna wrap those)
This commit is contained in:
@@ -44,6 +44,7 @@ public abstract class ParcelableS2K implements Parcelable {
|
|||||||
abstract int getS2kType();
|
abstract int getS2kType();
|
||||||
abstract int getS2kHashAlgo();
|
abstract int getS2kHashAlgo();
|
||||||
abstract long getS2kItCount();
|
abstract long getS2kItCount();
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
abstract byte[] getS2kIV();
|
abstract byte[] getS2kIV();
|
||||||
|
|
||||||
@Memoized
|
@Memoized
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public abstract class PgpSignEncryptData implements Parcelable {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public abstract Passphrase getSymmetricPassphrase();
|
public abstract Passphrase getSymmetricPassphrase();
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract long[] getEncryptionMasterKeyIds();
|
public abstract long[] getEncryptionMasterKeyIds();
|
||||||
public abstract int getCompressionAlgorithm();
|
public abstract int getCompressionAlgorithm();
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public abstract class ChangeUnlockParcel implements Parcelable {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public abstract Long getMasterKeyId();
|
public abstract Long getMasterKeyId();
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract byte[] getFingerprint();
|
public abstract byte[] getFingerprint();
|
||||||
public abstract Passphrase getNewPassphrase();
|
public abstract Passphrase getNewPassphrase();
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import com.google.auto.value.AutoValue;
|
|||||||
|
|
||||||
@AutoValue
|
@AutoValue
|
||||||
public abstract class DeleteKeyringParcel implements Parcelable {
|
public abstract class DeleteKeyringParcel implements Parcelable {
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract long[] getMasterKeyIds();
|
public abstract long[] getMasterKeyIds();
|
||||||
public abstract boolean isDeleteSecret();
|
public abstract boolean isDeleteSecret();
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,10 @@ import com.google.auto.value.AutoValue;
|
|||||||
public abstract class PromoteKeyringParcel implements Parcelable {
|
public abstract class PromoteKeyringParcel implements Parcelable {
|
||||||
public abstract long getMasterKeyId();
|
public abstract long getMasterKeyId();
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract byte[] getCardAid();
|
public abstract byte[] getCardAid();
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract long[] getSubKeyIds();
|
public abstract long[] getSubKeyIds();
|
||||||
|
|
||||||
public static PromoteKeyringParcel createPromoteKeyringParcel(long keyRingId, byte[] cardAid,
|
public static PromoteKeyringParcel createPromoteKeyringParcel(long keyRingId, byte[] cardAid,
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public abstract class SaveKeyringParcel implements Parcelable {
|
|||||||
public abstract Long getMasterKeyId();
|
public abstract Long getMasterKeyId();
|
||||||
// the key fingerprint, for safety. MUST be null for a new key.
|
// the key fingerprint, for safety. MUST be null for a new key.
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract byte[] getFingerprint();
|
public abstract byte[] getFingerprint();
|
||||||
|
|
||||||
public abstract List<String> getAddUserIds();
|
public abstract List<String> getAddUserIds();
|
||||||
@@ -263,6 +264,7 @@ public abstract class SaveKeyringParcel implements Parcelable {
|
|||||||
// if this is non-null, the subkey will be changed to a divert-to-card
|
// if this is non-null, the subkey will be changed to a divert-to-card
|
||||||
// (security token) key for the given serial number
|
// (security token) key for the given serial number
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract byte[] getSecurityTokenSerialNo();
|
public abstract byte[] getSecurityTokenSerialNo();
|
||||||
|
|
||||||
public static SubkeyChange createRecertifyChange(long keyId, boolean recertify) {
|
public static SubkeyChange createRecertifyChange(long keyId, boolean recertify) {
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ public abstract class UploadKeyringParcel implements Parcelable {
|
|||||||
@Nullable
|
@Nullable
|
||||||
public abstract Long getMasterKeyId();
|
public abstract Long getMasterKeyId();
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@SuppressWarnings("mutable")
|
||||||
public abstract byte[] getUncachedKeyringBytes();
|
public abstract byte[] getUncachedKeyringBytes();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user