suppress mutable warnings for primitive arrays (we don't wanna wrap those)

This commit is contained in:
Vincent Breitmoser 2017-05-23 14:15:58 +02:00
parent d58f1bd225
commit c4a4fdadff
7 changed files with 9 additions and 0 deletions

View file

@ -44,6 +44,7 @@ public abstract class ParcelableS2K implements Parcelable {
abstract int getS2kType();
abstract int getS2kHashAlgo();
abstract long getS2kItCount();
@SuppressWarnings("mutable")
abstract byte[] getS2kIV();
@Memoized

View file

@ -40,6 +40,7 @@ public abstract class PgpSignEncryptData implements Parcelable {
@Nullable
public abstract Passphrase getSymmetricPassphrase();
@Nullable
@SuppressWarnings("mutable")
public abstract long[] getEncryptionMasterKeyIds();
public abstract int getCompressionAlgorithm();
@Nullable

View file

@ -31,6 +31,7 @@ public abstract class ChangeUnlockParcel implements Parcelable {
@Nullable
public abstract Long getMasterKeyId();
@Nullable
@SuppressWarnings("mutable")
public abstract byte[] getFingerprint();
public abstract Passphrase getNewPassphrase();

View file

@ -27,6 +27,7 @@ import com.google.auto.value.AutoValue;
@AutoValue
public abstract class DeleteKeyringParcel implements Parcelable {
@SuppressWarnings("mutable")
public abstract long[] getMasterKeyIds();
public abstract boolean isDeleteSecret();

View file

@ -30,8 +30,10 @@ import com.google.auto.value.AutoValue;
public abstract class PromoteKeyringParcel implements Parcelable {
public abstract long getMasterKeyId();
@Nullable
@SuppressWarnings("mutable")
public abstract byte[] getCardAid();
@Nullable
@SuppressWarnings("mutable")
public abstract long[] getSubKeyIds();
public static PromoteKeyringParcel createPromoteKeyringParcel(long keyRingId, byte[] cardAid,

View file

@ -55,6 +55,7 @@ public abstract class SaveKeyringParcel implements Parcelable {
public abstract Long getMasterKeyId();
// the key fingerprint, for safety. MUST be null for a new key.
@Nullable
@SuppressWarnings("mutable")
public abstract byte[] getFingerprint();
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
// (security token) key for the given serial number
@Nullable
@SuppressWarnings("mutable")
public abstract byte[] getSecurityTokenSerialNo();
public static SubkeyChange createRecertifyChange(long keyId, boolean recertify) {

View file

@ -33,6 +33,7 @@ public abstract class UploadKeyringParcel implements Parcelable {
@Nullable
public abstract Long getMasterKeyId();
@Nullable
@SuppressWarnings("mutable")
public abstract byte[] getUncachedKeyringBytes();