Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
n1hility committed Oct 25, 2014
1 parent 3d2f973 commit 03ff523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jboss/jandex/IndexReaderV2.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private MethodInternal readMethodEntry(PackedDataInputStream stream) throws IOEx
Type[] exceptions = typeListTable[stream.readPackedU32()];

MethodInfo methodInfo = new MethodInfo();
AnnotationInstance[] annotations = readAnnotations(stream, new MethodInfo());
AnnotationInstance[] annotations = readAnnotations(stream, methodInfo);
MethodInternal methodInternal = new MethodInternal(name, parameters, returnType, flags,
receiverType, typeParameters,
exceptions, annotations);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/jboss/jandex/MethodInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
*/
public final class MethodInfo implements AnnotationTarget {

private MethodInternal methodInternal = new MethodInternal();
private MethodInternal methodInternal;
private ClassInfo clazz;


MethodInfo() {
methodInternal = new MethodInternal();
}

MethodInfo(ClassInfo clazz, MethodInternal methodInternal) {
Expand Down

0 comments on commit 03ff523

Please sign in to comment.