suppress AutoValue mutable byte array warnings
This commit is contained in:
parent
ac96fea1fc
commit
29a740a902
|
@ -31,10 +31,12 @@ import com.google.auto.value.AutoValue;
|
|||
@AutoValue
|
||||
public abstract class ParcelableKeyRing implements Parcelable {
|
||||
@Nullable
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getBytes();
|
||||
|
||||
// dual role!
|
||||
@Nullable
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getExpectedFingerprint();
|
||||
@Nullable
|
||||
public abstract String getKeyIdHex();
|
||||
|
|
|
@ -38,6 +38,7 @@ abstract class SktUri {
|
|||
|
||||
public abstract String getHost();
|
||||
public abstract int getPort();
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getPresharedKey();
|
||||
|
||||
@Nullable
|
||||
|
|
|
@ -33,6 +33,7 @@ public abstract class CommandApdu {
|
|||
public abstract int getINS();
|
||||
public abstract int getP1();
|
||||
public abstract int getP2();
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getData();
|
||||
public abstract int getNe();
|
||||
|
||||
|
|
|
@ -36,7 +36,9 @@ public abstract class OpenPgpCapabilities {
|
|||
private static final int MAX_PW1_LENGTH_INDEX = 1;
|
||||
private static final int MAX_PW3_LENGTH_INDEX = 3;
|
||||
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getAid();
|
||||
@SuppressWarnings("mutable")
|
||||
abstract byte[] getHistoricalBytes();
|
||||
|
||||
@Nullable
|
||||
|
@ -48,6 +50,7 @@ public abstract class OpenPgpCapabilities {
|
|||
@Nullable
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getFingerprintAuth();
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getPwStatusBytes();
|
||||
|
||||
public abstract KeyFormat getSignKeyFormat();
|
||||
|
|
|
@ -28,6 +28,7 @@ import com.google.auto.value.AutoValue;
|
|||
public abstract class ResponseApdu {
|
||||
private static final int APDU_SW_SUCCESS = 0x9000;
|
||||
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getData();
|
||||
public abstract int getSw1();
|
||||
public abstract int getSw2();
|
||||
|
|
|
@ -47,6 +47,7 @@ public abstract class SecurityTokenInfo implements Parcelable {
|
|||
|
||||
public abstract List<byte[]> getFingerprints();
|
||||
@Nullable
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getAid();
|
||||
@Nullable
|
||||
public abstract String getUserId();
|
||||
|
|
|
@ -269,6 +269,7 @@ public class CcidTransceiver {
|
|||
public abstract byte getError();
|
||||
public abstract byte getChainParameter();
|
||||
@Nullable
|
||||
@SuppressWarnings("mutable")
|
||||
public abstract byte[] getData();
|
||||
|
||||
static CcidDataBlock parseHeaderFromBytes(byte[] headerBytes) {
|
||||
|
|
|
@ -325,6 +325,7 @@ public abstract class PublicKeyRetrievalLoader extends AsyncTaskLoader<KeyRetrie
|
|||
@Nullable
|
||||
abstract Long getMasterKeyId();
|
||||
@Nullable
|
||||
@SuppressWarnings("mutable")
|
||||
abstract byte[] getKeyData();
|
||||
abstract boolean isSecretKeyAvailable();
|
||||
|
||||
|
|
Loading…
Reference in a new issue