From 574a46017950e4e04b9e52cb52c74ad9948060cb Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 12 Aug 2018 14:08:57 +0200 Subject: Reformat all code. --- src/cz/crcs/ectester/common/util/ByteUtil.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/cz/crcs/ectester/common/util') diff --git a/src/cz/crcs/ectester/common/util/ByteUtil.java b/src/cz/crcs/ectester/common/util/ByteUtil.java index daacabb..4b4a2d6 100644 --- a/src/cz/crcs/ectester/common/util/ByteUtil.java +++ b/src/cz/crcs/ectester/common/util/ByteUtil.java @@ -10,6 +10,7 @@ public class ByteUtil { /** * Gen a short from a byte array at offset, big-endian. + * * @return the short value */ public static short getShort(byte[] array, int offset) { @@ -26,6 +27,7 @@ public class ByteUtil { /** * Compare two byte arrays upto length and get first difference. + * * @return the position of the first difference in the two byte arrays, or length if they are equal. */ public static int diffBytes(byte[] one, int oneOffset, byte[] other, int otherOffset, int length) { @@ -41,6 +43,7 @@ public class ByteUtil { /** * Compare two byte arrays, upto length. + * * @return whether the arrays are equal upto length */ public static boolean compareBytes(byte[] one, int oneOffset, byte[] other, int otherOffset, int length) { @@ -77,6 +80,7 @@ public class ByteUtil { /** * Parse a hex string into a byte array, big-endian. + * * @param hex The String to parse. * @return the byte array from the hex string. */ @@ -86,7 +90,8 @@ public class ByteUtil { /** * Parse a hex string into a byte-array, specify endianity. - * @param hex The String to parse. + * + * @param hex The String to parse. * @param bigEndian Whether to parse as big-endian. * @return the byte array from the hex string. */ -- cgit v1.2.3-70-g09d2