From 826e9fd8de53fdf7bfe3a408d6ecba02e4359c7e Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 27 Nov 2017 07:50:49 +0100 Subject: Remove unnecessary boxing and unboxing Change-Id: I9f7cf7d7ecb97d7da449dac679f2d15438ac4970 Signed-off-by: Marek Gradzki --- .../hc2vpp/common/translate/util/ByteDataTranslator.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'vpp-common') 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 @@ -44,20 +44,6 @@ public interface ByteDataTranslator { : BYTE_FALSE; } - /** - * 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 */ -- cgit 1.2.3-korg