X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Fnumber%2FHex.java;fp=src%2Fnet%2Fpterodactylus%2Futil%2Fnumber%2FHex.java;h=de7929e7cfe65e7982a67bd6c9a71055ed80494c;hb=1318ca0dedd3b2c0e5457979b0d4ec111df6fa8d;hp=f92a31a14ab9c43917d99aca7ccc098957d324f1;hpb=edcbb15a07ecaac194d7cb968b246ab5cd4fe4e1;p=jSite2.git diff --git a/src/net/pterodactylus/util/number/Hex.java b/src/net/pterodactylus/util/number/Hex.java index f92a31a..de7929e 100644 --- a/src/net/pterodactylus/util/number/Hex.java +++ b/src/net/pterodactylus/util/number/Hex.java @@ -68,6 +68,8 @@ public class Hex { * The hexadecimal representation to decode * @return The decoded byte array * @see Integer#parseInt(java.lang.String, int) + * @throw NumberFormatException if the given string is not the hexadecimal + * representation of a byte array */ public static byte[] toByte(String hexString) { if ((hexString.length() & 0x01) == 0x01) {