From 869b361d0d5eff561b3133acfcc4f90c23fa9bd1 Mon Sep 17 00:00:00 2001 From: prakanth <50439067+prakanth97@users.noreply.github.com> Date: Tue, 9 Apr 2024 07:56:15 +0530 Subject: [PATCH] Address review suggestion --- .../lib/data/xmldata/compiler/XmldataRecordFieldValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java b/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java index 22587cf..305e076 100644 --- a/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java +++ b/compiler-plugin/src/main/java/io/ballerina/lib/data/xmldata/compiler/XmldataRecordFieldValidator.java @@ -393,7 +393,7 @@ private boolean isParseFunctionFromXmldata(ExpressionNode expressionNode) { if (nameReferenceNode.kind() != SyntaxKind.QUALIFIED_NAME_REFERENCE) { return false; } - String prefix = ((QualifiedNameReferenceNode) nameReferenceNode).modulePrefix().toString(); + String prefix = ((QualifiedNameReferenceNode) nameReferenceNode).modulePrefix().text(); if (!prefix.equals(Constants.XMLDATA)) { return false; }