From 1e978ea4355a9a1f790a500847d52475b458a6b8 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Thu, 8 Mar 2012 17:46:56 +0000
Subject: [PATCH] javadoc

---
 core/java/src/net/i2p/data/SimpleDataStructure.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/java/src/net/i2p/data/SimpleDataStructure.java b/core/java/src/net/i2p/data/SimpleDataStructure.java
index 89d0cbbcbd..cdd1e242ac 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 {
-- 
GitLab