From 71c4f8d59af31abf2a992c2d70efab707e3bc29c Mon Sep 17 00:00:00 2001 From: BLasan Date: Mon, 9 Sep 2024 13:47:53 +0530 Subject: [PATCH] Fix: CheckStyle issue in If clause --- .../api/publisher/v1/common/mappings/PublisherCommonUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java index dd7cbccb9a95..3b20d3818def 100755 --- a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java +++ b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java @@ -205,9 +205,10 @@ public static API updateApi(API originalAPI, APIDTO apiDtoToUpdate, APIProvider public static JSONObject updateCustomBackend(API api, APIProvider apiProvider, String endpointType, InputStream customBackend, String contentDecomp) throws APIManagementException { String fileName = getFileNameFromContentDisposition(contentDecomp); - if (fileName == null) + if (fileName == null) { throw new APIManagementException( "Error when retrieving Custom Backend file name of API: " + api.getId().getApiName()); + } String seqName = APIUtil.getCustomBackendName(api.getUuid(), endpointType); String customBackendUUID = UUID.randomUUID().toString(); apiProvider.updateCustomBackend(api, endpointType, customBackend, seqName, customBackendUUID);