summaryrefslogtreecommitdiffstats
path: root/vpp-common/vpp-translate-utils
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-11-27 07:50:49 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-11-27 08:05:50 +0100
commit826e9fd8de53fdf7bfe3a408d6ecba02e4359c7e (patch)
treeb426cf15450e109a97793e7d096216dafe644074 /vpp-common/vpp-translate-utils
parentfc838c481e6f588906f6282ee1891b4b98ab1779 (diff)
Remove unnecessary boxing and unboxing
Change-Id: I9f7cf7d7ecb97d7da449dac679f2d15438ac4970 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'vpp-common/vpp-translate-utils')
-rw-r--r--vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/ByteDataTranslator.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/ByteDataTranslator.java b/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/ByteDataTranslator.java
index c7583fb52..fc511d714 100644
--- a/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/ByteDataTranslator.java
+++ b/vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/ByteDataTranslator.java
@@ -45,20 +45,6 @@ public interface ByteDataTranslator {
}
/**
- * Converts int to byte.
- */
- default byte toByte(final int value) {
- return Integer.valueOf(value).byteValue();
- }
-
- /**
- * Converts short to byte.
- */
- default byte toByte(final short value) {
- return Short.valueOf(value).byteValue();
- }
-
- /**
* Checks if provided array contains only zeros
*/
default boolean isArrayZeroed(final byte[] arr) {