From d26a365d0bc13270722f4a8ad7cf0565a0cea59a Mon Sep 17 00:00:00 2001 From: warunalakshitha Date: Mon, 25 Nov 2024 23:55:08 +0530 Subject: [PATCH 1/2] Improve runtime api usages --- .../java/io/ballerina/stdlib/http/api/HttpService.java | 3 +-- .../main/java/io/ballerina/stdlib/http/api/HttpUtil.java | 5 ++--- .../stdlib/http/api/nativeimpl/connection/Respond.java | 8 +------- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java b/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java index 7c52cf64f..44b1f0dc0 100644 --- a/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java +++ b/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java @@ -491,8 +491,7 @@ public static void populateInterceptorServicesRegistries(List Date: Tue, 26 Nov 2024 16:08:10 +0530 Subject: [PATCH 2/2] Fix check style issues --- .../src/main/java/io/ballerina/stdlib/http/api/HttpService.java | 1 - native/src/main/java/io/ballerina/stdlib/http/api/HttpUtil.java | 1 - 2 files changed, 2 deletions(-) diff --git a/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java b/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java index 44b1f0dc0..83e26aaa2 100644 --- a/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java +++ b/native/src/main/java/io/ballerina/stdlib/http/api/HttpService.java @@ -18,7 +18,6 @@ package io.ballerina.stdlib.http.api; import io.ballerina.runtime.api.Runtime; -import io.ballerina.runtime.api.concurrent.StrandMetadata; import io.ballerina.runtime.api.creators.TypeCreator; import io.ballerina.runtime.api.creators.ValueCreator; import io.ballerina.runtime.api.flags.SymbolFlags; diff --git a/native/src/main/java/io/ballerina/stdlib/http/api/HttpUtil.java b/native/src/main/java/io/ballerina/stdlib/http/api/HttpUtil.java index ae9297750..4c4298703 100644 --- a/native/src/main/java/io/ballerina/stdlib/http/api/HttpUtil.java +++ b/native/src/main/java/io/ballerina/stdlib/http/api/HttpUtil.java @@ -187,7 +187,6 @@ import static io.ballerina.stdlib.mime.util.MimeConstants.REQUEST_ENTITY_FIELD; import static io.ballerina.stdlib.mime.util.MimeConstants.RESPONSE_ENTITY_FIELD; import static io.netty.handler.codec.http.HttpHeaderNames.CACHE_CONTROL; - import static java.lang.System.err; /**