diff options
Diffstat (limited to 'src/main/javassist')
-rw-r--r-- | src/main/javassist/bytecode/annotation/Annotation.java | 2 | ||||
-rw-r--r-- | src/main/javassist/bytecode/annotation/ArrayMemberValue.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/annotation/Annotation.java b/src/main/javassist/bytecode/annotation/Annotation.java index 851d3f9c..831960e3 100644 --- a/src/main/javassist/bytecode/annotation/Annotation.java +++ b/src/main/javassist/bytecode/annotation/Annotation.java @@ -78,7 +78,7 @@ public class Annotation { * Constructs an annotation including no members. A member can be * later added to the created annotation by <code>addMemberValue()</code>. * - * @param typeName the name of the annotation interface type. + * @param typeName the fully-qualified name of the annotation interface type. * @param cp the constant pool table. * * @see #addMemberValue(String, MemberValue) diff --git a/src/main/javassist/bytecode/annotation/ArrayMemberValue.java b/src/main/javassist/bytecode/annotation/ArrayMemberValue.java index 58b09b38..389bdf90 100644 --- a/src/main/javassist/bytecode/annotation/ArrayMemberValue.java +++ b/src/main/javassist/bytecode/annotation/ArrayMemberValue.java @@ -130,7 +130,7 @@ public class ArrayMemberValue extends MemberValue { * Writes the value. */ public void write(AnnotationsWriter writer) throws IOException { - int num = values.length; + int num = values == null ? 0 : values.length; writer.arrayValue(num); for (int i = 0; i < num; ++i) values[i].write(writer); |