suppress AutoValue mutable byte array warnings

This commit is contained in:
Vincent Breitmoser
2018-01-22 01:35:09 +01:00
parent ac96fea1fc
commit 29a740a902
8 changed files with 11 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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) {