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/main | |
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/main')
-rw-r--r-- | routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/write/factory/MultipathHopRequestFactory.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/write/factory/MultipathHopRequestFactory.java b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/write/factory/MultipathHopRequestFactory.java index 599d450d2..bad51478d 100644 --- a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/write/factory/MultipathHopRequestFactory.java +++ b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/write/factory/MultipathHopRequestFactory.java @@ -67,7 +67,7 @@ public class MultipathHopRequestFactory extends BasicHopRequestFactory implement route.getDestinationPrefix(), nextHopInterfaceIndex, hop.getAddress(), - toByte(hop.getWeight()), + hop.getWeight().byteValue(), getRoutingProtocolContext().getIndex(parentProtocolName, mappingContext), DEFAULT_VNI, classifyTableIndex(routingAttributes.getClassifyTable(), getVppClassifierContextManager(), @@ -78,7 +78,7 @@ public class MultipathHopRequestFactory extends BasicHopRequestFactory implement route.getDestinationPrefix(), nextHopInterfaceIndex, hop.getAddress(), - toByte(hop.getWeight()), + hop.getWeight().byteValue(), getRoutingProtocolContext().getIndex(parentProtocolName, mappingContext), DEFAULT_VNI, 0, @@ -102,7 +102,7 @@ public class MultipathHopRequestFactory extends BasicHopRequestFactory implement route.getDestinationPrefix(), nextHopInterfaceIndex, hop.getAddress(), - toByte(hop.getWeight()), + hop.getWeight().byteValue(), getRoutingProtocolContext().getIndex(parentProtocolName, mappingContext), DEFAULT_VNI, classifyTableIndex(routingAttributes.getClassifyTable(), getVppClassifierContextManager(), @@ -113,7 +113,7 @@ public class MultipathHopRequestFactory extends BasicHopRequestFactory implement route.getDestinationPrefix(), nextHopInterfaceIndex, hop.getAddress(), - toByte(hop.getWeight()), + hop.getWeight().byteValue(), getRoutingProtocolContext().getIndex(parentProtocolName, mappingContext), DEFAULT_VNI, 0, @@ -129,8 +129,8 @@ public class MultipathHopRequestFactory extends BasicHopRequestFactory implement final int primaryVrf, final int secondaryVrf, final int classifyTableIndex, final boolean classifyIndexSet) { return flaglessAddDelRouteRequest(booleanToByte(isAdd), nextHopInterfaceIndex, - ipv6AddressNoZoneToArray(nextHopAddress), nextHopWeight, toByte(1), - ipv6AddressPrefixToArray(destinationAddress), extractPrefix(destinationAddress.getValue()), toByte(1), + ipv6AddressNoZoneToArray(nextHopAddress), nextHopWeight, (byte)1, + ipv6AddressPrefixToArray(destinationAddress), extractPrefix(destinationAddress.getValue()), (byte)1, primaryVrf, secondaryVrf, classifyTableIndex, booleanToByte(classifyIndexSet)); } @@ -142,8 +142,8 @@ public class MultipathHopRequestFactory extends BasicHopRequestFactory implement final int primaryVrf, final int secondaryVrf, final int classifyTableIndex, final boolean classifyIndexSet) { return flaglessAddDelRouteRequest(booleanToByte(isAdd), nextHopInterfaceIndex, - ipv4AddressNoZoneToArray(nextHopAddress.getValue()), nextHopWeight, toByte(0), - ipv4AddressPrefixToArray(destinationAddress), extractPrefix(destinationAddress.getValue()), toByte(1), + ipv4AddressNoZoneToArray(nextHopAddress.getValue()), nextHopWeight, (byte)0, + ipv4AddressPrefixToArray(destinationAddress), extractPrefix(destinationAddress.getValue()), (byte)1, primaryVrf, secondaryVrf, classifyTableIndex, booleanToByte(classifyIndexSet)); } |