diff --git a/core/java/src/net/i2p/data/Hash.java b/core/java/src/net/i2p/data/Hash.java index a0f63459a3380772be333589d525afd95d933522..add8235a6aa8a9456c4b67b62e06e724898109c2 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) {