diff --git a/core/java/src/net/i2p/data/Hash.java b/core/java/src/net/i2p/data/Hash.java index a0f63459a3..add8235a6a 100644 --- a/core/java/src/net/i2p/data/Hash.java +++ b/core/java/src/net/i2p/data/Hash.java @@ -30,6 +30,7 @@ public class Hash extends SimpleDataStructure { /** * Pull from cache or return new + * @throws IllegalArgumentException if data is not the correct number of bytes * @since 0.8.3 */ public static Hash create(byte[] data) { @@ -38,6 +39,7 @@ public class Hash extends SimpleDataStructure { /** * Pull from cache or return new + * @throws AIOOBE if not enough bytes * @since 0.8.3 */ public static Hash create(byte[] data, int off) {