Skip to content

Commit

Permalink
Merge pull request #43180 from NipunaMadhushan/fix-service-type-issue
Browse files Browse the repository at this point in the history
Fix capturing resource method declarations
  • Loading branch information
NipunaMadhushan authored Jul 30, 2024
2 parents 166d297 + 04b9e02 commit 161c08a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ private static BObjectType getObjectTypeModel(ObjectTypeDescriptorNode typeDescr
String methodName = "";
String accessor = "";
String resourcePath = "";
if (methodNode.kind() == SyntaxKind.RESOURCE_ACCESSOR_DEFINITION) {
if (methodNode.kind() == SyntaxKind.RESOURCE_ACCESSOR_DECLARATION) {
accessor = methodNode.methodName().text();
resourcePath = methodNode.relativeResourcePath().stream().
collect(StringBuilder::new, (firstString,
Expand Down

0 comments on commit 161c08a

Please sign in to comment.