From e72356940177459b7e505cc909efc0f0788695df Mon Sep 17 00:00:00 2001 From: Mevan Date: Fri, 25 Oct 2024 11:15:07 +0530 Subject: [PATCH] Fix check-styles issues --- .../main/java/org/wso2/choreo/connect/enforcer/api/Utils.java | 2 -- .../org/wso2/choreo/connect/enforcer/security/AuthFilter.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/api/Utils.java b/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/api/Utils.java index 348f9c74c3..c5d440f1b7 100644 --- a/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/api/Utils.java +++ b/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/api/Utils.java @@ -25,10 +25,8 @@ import org.wso2.choreo.connect.enforcer.commons.model.RequestContext; import org.wso2.choreo.connect.enforcer.commons.model.ResourceConfig; import org.wso2.choreo.connect.enforcer.commons.model.RetryConfig; -import org.wso2.choreo.connect.enforcer.commons.model.SecuritySchemaConfig; import org.wso2.choreo.connect.enforcer.config.ConfigHolder; import org.wso2.choreo.connect.enforcer.config.dto.AuthHeaderDto; -import org.wso2.choreo.connect.enforcer.constants.APIConstants; import org.wso2.choreo.connect.enforcer.constants.Constants; import org.wso2.choreo.connect.enforcer.util.FilterUtils; diff --git a/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/AuthFilter.java b/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/AuthFilter.java index 88899162cf..0418fc7a47 100644 --- a/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/AuthFilter.java +++ b/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/AuthFilter.java @@ -98,8 +98,8 @@ private void initializeAuthenticators(APIConfig apiConfig) { } if (isApiKeyProtected) { - APIKeyAuthenticator APIKeyAuthenticator = new APIKeyAuthenticator(); - authenticators.add(APIKeyAuthenticator); + APIKeyAuthenticator apiKeyAuthenticator = new APIKeyAuthenticator(); + authenticators.add(apiKeyAuthenticator); } Authenticator authenticator = new InternalAPIKeyAuthenticator(