From 5ee1265b8dd852923a41d5934fae46d0c725f374 Mon Sep 17 00:00:00 2001 From: rajuGT Date: Fri, 18 Oct 2024 20:02:35 +0530 Subject: [PATCH] Fix checkstyle and made constants as static variables --- .../functions/udfs/python/file/source/cos/CosClient.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dagger-functions/src/main/java/com/gotocompany/dagger/functions/udfs/python/file/source/cos/CosClient.java b/dagger-functions/src/main/java/com/gotocompany/dagger/functions/udfs/python/file/source/cos/CosClient.java index d787db38a..508212203 100644 --- a/dagger-functions/src/main/java/com/gotocompany/dagger/functions/udfs/python/file/source/cos/CosClient.java +++ b/dagger-functions/src/main/java/com/gotocompany/dagger/functions/udfs/python/file/source/cos/CosClient.java @@ -16,10 +16,9 @@ public class CosClient { - // TODO find better way to initialize clients - private final String ENV_COS_SECRET_ID = "COS_SECRET_ID"; - private final String ENV_COS_SECRET_KEY = "COS_SECRET_KEY"; - private final String ENV_COS_REGION = "COS_REGION"; + private static final String ENV_COS_SECRET_ID = "COS_SECRET_ID"; + private static final String ENV_COS_SECRET_KEY = "COS_SECRET_KEY"; + private static final String ENV_COS_REGION = "COS_REGION"; private final COSClient libCosClient;