From 447601dc0798d1c1d14ce21050d5a6be15ef13e2 Mon Sep 17 00:00:00 2001 From: lnash94 Date: Wed, 18 Sep 2024 09:57:32 +0530 Subject: [PATCH] Remove RecordType check from the query param --- .../stdlib/http/api/client/actions/HttpClientAction.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java b/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java index 7ebce261df..7533bb6208 100644 --- a/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java +++ b/native/src/main/java/io/ballerina/stdlib/http/api/client/actions/HttpClientAction.java @@ -328,9 +328,7 @@ private static String constructQueryString(BMap params) { */ private static Map getQueryNameMapping(BMap params) { Map annotationValues = new HashMap<>(); - if (!(params.getType() instanceof RecordType queryRecord)) { - return annotationValues; - } + RecordType queryRecord = (RecordType) params.getType(); BMap queryFields = queryRecord.getAnnotations(); for (Map.Entry qField: queryFields.entrySet()) {