diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-11-27 07:50:49 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-11-27 08:05:50 +0100 |
commit | 826e9fd8de53fdf7bfe3a408d6ecba02e4359c7e (patch) | |
tree | b426cf15450e109a97793e7d096216dafe644074 /routing/routing-impl/src/test | |
parent | fc838c481e6f588906f6282ee1891b4b98ab1779 (diff) |
Remove unnecessary boxing and unboxing
Change-Id: I9f7cf7d7ecb97d7da449dac679f2d15438ac4970
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'routing/routing-impl/src/test')
-rw-r--r-- | routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java index b1703be26..dd6ba37d2 100644 --- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java +++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java @@ -97,25 +97,25 @@ public interface RoutingRequestTestHelper extends ByteDataTranslator, FutureProd final int isProhibit) { final IpAddDelRoute request = new IpAddDelRoute(); - request.isAdd = toByte(add); - request.isIpv6 = toByte(ipv6); - request.isMultipath = toByte(isMultipath); + request.isAdd = (byte)add; + request.isIpv6 = (byte)ipv6; + request.isMultipath = (byte)isMultipath; request.dstAddress = destinationAddress; - request.dstAddressLength = toByte(destinationPrefixLength); + request.dstAddressLength = (byte)destinationPrefixLength; request.nextHopAddress = nextHopAddr; request.nextHopSwIfIndex = nextHopIndex; - request.nextHopWeight = toByte(nextHopWeight); + request.nextHopWeight = (byte)nextHopWeight; request.classifyTableIndex = classifyTableIndexSet; request.tableId = vrfId; request.nextHopTableId = secondaryVrfId; - request.createVrfIfNeeded = toByte(createVrfIfNeeded); + request.createVrfIfNeeded = (byte)createVrfIfNeeded; request.classifyTableIndex = classifyTableIndex; - request.isClassify = toByte(classifyTableIndexSet); + request.isClassify = (byte)classifyTableIndexSet; // special hop flags - request.isDrop = toByte(isDrop); - request.isLocal = toByte(isLocal); - request.isUnreach = toByte(isUnreach); - request.isProhibit = toByte(isProhibit); + request.isDrop = (byte)isDrop; + request.isLocal = (byte)isLocal; + request.isUnreach = (byte)isUnreach; + request.isProhibit = (byte)isProhibit; request.nextHopViaLabel = RouteRequestProducer.MPLS_LABEL_INVALID; return request; } |