summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-08-13 07:19:14 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-08-13 07:19:20 +0200
commit99dcb6c4d23eda602adb54a3702ad941071ba451 (patch)
tree23a798fe5a6a0e45e2e08b323b458a05b00af316 /lisp
parentf31cac1a4005fd502c95858b71c60900ee9f10bd (diff)
lisp: remove unnecessary Integer boxing in RemoteMappingCustomizer
Fixes issue reported by Sonar Change-Id: If7448ea2618cbcbad56c7dcf4c87ec6f1cc1cb39 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'lisp')
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java
index 96ab9d3b0..72b70354b 100755
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/write/RemoteMappingCustomizer.java
@@ -155,7 +155,7 @@ public class RemoteMappingCustomizer extends FutureJVppCustomizer
return remoteLocator;
}).toArray(OneRemoteLocator[]::new);
- request.rlocNum = Integer.valueOf(rlocs.getLocator().size()).byteValue();
+ request.rlocNum = (byte) rlocs.getLocator().size();
}
getReply(getFutureJVpp().oneAddDelRemoteMapping(request).toCompletableFuture());