Sho SHIMIZU
Committed by Brian O'Connor

Remove unnecessary boxing

Change-Id: Ifc4122acc508c45c97d1ee5eb33f3effc61d8579
......@@ -26,14 +26,14 @@ import com.google.common.testing.EqualsTester;
public class RouterIDSubTlvTest {
private final byte[] value1 = {1, 2 };
private final Short length1 = new Short((short) 2);
private final Short length1 = 2;
private final RouterIDSubTlv tlv1 = RouterIDSubTlv.of(value1, length1);
private final Short length2 = new Short((short) 2);
private final Short length2 = 2;
private final RouterIDSubTlv tlv2 = RouterIDSubTlv.of(value1, length2);
private final byte[] value3 = {1, 2, 3 };
private final Short length3 = new Short((short) 3);
private final Short length3 = 3;
private final RouterIDSubTlv tlv3 = RouterIDSubTlv.of(value3, length3);
@Test
......
......@@ -26,13 +26,13 @@ import com.google.common.testing.EqualsTester;
public class SharedRiskLinkGroupTlvTest {
private final int[] raw = {1 };
private final Short hLength = new Short((short) 2);
private final Short hLength = 2;
private final SharedRiskLinkGroupTlv tlv1 = SharedRiskLinkGroupTlv.of(raw, hLength);
private final SharedRiskLinkGroupTlv sameAsTlv1 = SharedRiskLinkGroupTlv.of(raw, hLength);
private final int[] raw2 = {2 };
private final Short hLength2 = new Short((short) 3);
private final Short hLength2 = 3;
private final SharedRiskLinkGroupTlv tlv2 = SharedRiskLinkGroupTlv.of(raw2, hLength2);
@Test
......
......@@ -26,15 +26,15 @@ import com.google.common.testing.EqualsTester;
public class SymbolicPathNameTlvTest {
private final byte[] value1 = {0x41 };
private final Short length1 = new Short((short) 2);
private final Short length1 = 2;
private final SymbolicPathNameTlv tlv1 = SymbolicPathNameTlv.of(value1, length1);
private final byte[] value2 = {0x41 };
private final Short length2 = new Short((short) 2);
private final Short length2 = 2;
private final SymbolicPathNameTlv tlv2 = SymbolicPathNameTlv.of(value1, length2);
private final byte[] value3 = {0x41, 0x43 };
private final Short length3 = new Short((short) 3);
private final Short length3 = 3;
private final SymbolicPathNameTlv tlv3 = SymbolicPathNameTlv.of(value3, length3);
@Test
......