Sho SHIMIZU
Committed by Brian O'Connor

Remove unnecessary boxing

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