diff --git a/core/java/src/net/i2p/data/SimpleDataStructure.java b/core/java/src/net/i2p/data/SimpleDataStructure.java index 89d0cbbcbdc2707869db0ed048c7e54b9ac71ad2..cdd1e242ac338c1746b1b48841a0be4bcb396da7 100644 --- a/core/java/src/net/i2p/data/SimpleDataStructure.java +++ b/core/java/src/net/i2p/data/SimpleDataStructure.java @@ -24,7 +24,7 @@ import net.i2p.crypto.SHA256Generator; * and setData(null) is also OK. However, * once non-null data is set, the data reference is immutable; * subsequent attempts to set the data via setData(), readBytes(), - * or fromBase64() will throw a RuntimeException. + * fromByteArray(), or fromBase64() will throw a RuntimeException. * * @since 0.8.2 * @author zzz @@ -136,6 +136,7 @@ public abstract class SimpleDataStructure extends DataStructureImpl { * Does the same thing as setData() but null not allowed. * @param data non-null * @throws DataFormatException if null or wrong length + * @throws RuntimeException if data already set. */ @Override public void fromByteArray(byte data[]) throws DataFormatException {