Fix useless/misplaced short conversions

This commit is contained in:
Arnaud Fontaine
2018-03-21 11:41:26 +01:00
parent 4796f6ea78
commit 79d9342827
3 changed files with 14 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ import javacardx.crypto.*;
public final class Constants {
protected static final short INTERNAL_BUFFER_MAX_LENGTH =
(short)((short)0x500);
(short)0x500;
protected static final short APDU_MAX_LENGTH = (short)256;
@@ -42,8 +42,8 @@ public final class Constants {
protected static final byte USER_PIN_MIN_SIZE_FORMAT_2 = 6;
protected static final byte USER_PIN_MAX_SIZE_FORMAT_2 = 12;
protected static final byte[] USER_PIN_DEFAULT = {
(byte)0x31, (byte)0x32, (byte)0x33, (byte)0x34,
(byte)0x35, (byte)0x36
(byte)0x31, (byte)0x32, (byte)0x33, (byte)0x34,
(byte)0x35, (byte)0x36
};
protected static final boolean USER_PIN_DEFAULT_IS_FORMAT_2 = false;
/*
@@ -69,8 +69,8 @@ public final class Constants {
protected static final byte ADMIN_PIN_MIN_SIZE_FORMAT_2 = 8;
protected static final byte ADMIN_PIN_MAX_SIZE_FORMAT_2 = 12;
protected static final byte[] ADMIN_PIN_DEFAULT = {
(byte)0x31, (byte)0x32, (byte)0x33, (byte)0x34,
(byte)0x35, (byte)0x36, (byte)0x37, (byte)0x38
(byte)0x31, (byte)0x32, (byte)0x33, (byte)0x34,
(byte)0x35, (byte)0x36, (byte)0x37, (byte)0x38
};
protected static final boolean ADMIN_PIN_DEFAULT_IS_FORMAT_2 = false;
/*