From 889161235400f0bd1a55e5def7f193c03d232562 Mon Sep 17 00:00:00 2001 From: Piotr Bulawa Date: Fri, 22 Mar 2024 17:28:16 +0100 Subject: [PATCH] Changed according to comments --- .../java/net/snowflake/client/core/CredentialManager.java | 6 +++--- .../java/net/snowflake/client/core/FileCacheManager.java | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/snowflake/client/core/CredentialManager.java b/src/main/java/net/snowflake/client/core/CredentialManager.java index 58b8fae3c..a5b919d3d 100644 --- a/src/main/java/net/snowflake/client/core/CredentialManager.java +++ b/src/main/java/net/snowflake/client/core/CredentialManager.java @@ -116,7 +116,7 @@ synchronized void fillCachedCredential(SFLoginInput loginInput, String credType) } if (cred == null) { - logger.debug("Retrieved %s is null", credType); + logger.debug("Retrieved {} is null", credType); } // cred can be null @@ -135,7 +135,7 @@ synchronized void fillCachedCredential(SFLoginInput loginInput, String credType) loginInput.getHostFromServerUrl()); loginInput.setMfaToken(cred); } else { - logger.debug("Unrecognized type %s for local cached credential", credType); + logger.debug("Unrecognized type {} for local cached credential", credType); } return; } @@ -178,7 +178,7 @@ void writeMfaToken(SFLoginInput loginInput, SFLoginOutput loginOutput) throws SF synchronized void writeTemporaryCredential(SFLoginInput loginInput, String cred, String credType) throws SFException { if (Strings.isNullOrEmpty(cred)) { - logger.debug("No %s is given.", credType); + logger.debug("No {} is given.", credType); return; // no credential } diff --git a/src/main/java/net/snowflake/client/core/FileCacheManager.java b/src/main/java/net/snowflake/client/core/FileCacheManager.java index 55178bfbf..2c472f476 100644 --- a/src/main/java/net/snowflake/client/core/FileCacheManager.java +++ b/src/main/java/net/snowflake/client/core/FileCacheManager.java @@ -318,7 +318,6 @@ private static long fileCreationTime(File targetFile) { return -1; } - @SnowflakeJdbcInternalApi String getCacheFilePath() { return cacheFile.getAbsolutePath(); }