Skip to content

Commit fe3bca7

Browse files
committed
Added missing callable fields field validator
Signed-off-by: Saurabh Sinha <[email protected]>
1 parent 4aeffc6 commit fe3bca7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cldk/models/java/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,10 @@ def validate_source(cls, value) -> JMethodDetail:
436436
j_callable: JCallable = _CALLABLES_LOOKUP_TABLE.get(
437437
(type_declaration, signature),
438438
JCallable(
439-
comments=[],
440439
signature=signature,
441440
is_implicit=True,
442441
is_constructor="<init>" in value["callable_declaration"],
443-
comment="",
442+
comments=[],
444443
annotations=[],
445444
modifiers=[],
446445
thrown_exceptions=[],
@@ -449,12 +448,15 @@ def validate_source(cls, value) -> JMethodDetail:
449448
JCallableParameter(name=None, type=t, annotations=[], modifiers=[], start_column=-1, end_column=-1, start_line=-1, end_line=-1)
450449
for t in value["callable_declaration"].split("(")[1].split(")")[0].split(",")
451450
],
451+
return_type=None,
452452
code="",
453453
start_line=-1,
454454
end_line=-1,
455+
code_start_line=-1,
455456
referenced_types=[],
456457
accessed_fields=[],
457458
call_sites=[],
459+
is_entrypoint=False,
458460
variable_declarations=[],
459461
crud_operations=[],
460462
crud_queries=[],

0 commit comments

Comments
 (0)