Oops, used the wrong Argument

This commit is contained in:
Roel Spilker committed 2012-01-09 22:28:36 +01:00
1 parent 2ddf708b37
commit 57fbcc1a7e
1 file changed
+1 -1
@@ -332,7 +332,7 @@ public class HandleConstructor {
Annotation[] copiedAnnotations = copyAnnotations(source, findAnnotations(field, TransformationsUtil.NON_NULL_PATTERN), findAnnotations(field, TransformationsUtil.NULLABLE_PATTERN));
if (copiedAnnotations.length != 0) parameter.annotations = copiedAnnotations;
params.add(new Argument(field.name, fieldPos, copyType(field.type, source), Modifier.FINAL));
params.add(parameter);
}
statement.arguments = assigns.isEmpty() ? null : assigns.toArray(new Expression[assigns.size()]);