Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ public SharedMethodInfo(SourceSection sourceSection, LexicalScope lexicalScope,
this.arity = arity;
this.name = name;
this.isBlock = isBlock;
this.argumentDescriptors = argumentDescriptors;
this.argumentDescriptors = argumentDescriptors == null ? new ArgumentDescriptor[] {} : argumentDescriptors;
this.alwaysClone = alwaysClone;
this.alwaysInline = alwaysInline;
this.needsCallerFrame = needsCallerFrame;
@@ -68,10 +68,6 @@ public boolean isBlock() {
}

public ArgumentDescriptor[] getArgumentDescriptors() {
if (argumentDescriptors == null) {
return new ArgumentDescriptor[] {};
}

return Arrays.copyOf(argumentDescriptors, argumentDescriptors.length);
}

0 comments on commit 3cc7f86

Please sign in to comment.