From 99ce7d4b7c2eeead0b9c95d94955f6ccaca94e78 Mon Sep 17 00:00:00 2001 From: Dominik Przybysz <132913826+sfc-gh-dprzybysz@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:55:49 +0100 Subject: [PATCH] SNOW-1059684: Fix deprecation links (#1640) --- src/main/java/net/snowflake/client/core/HttpUtil.java | 6 ++++-- .../client/core/SnowflakeMutableProxyRoutePlanner.java | 4 ++-- .../client/jdbc/SnowflakeResultSetSerializable.java | 4 ++-- .../client/jdbc/SnowflakeResultSetSerializableV1.java | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/net/snowflake/client/core/HttpUtil.java b/src/main/java/net/snowflake/client/core/HttpUtil.java index 055db1c66..84f31c8e8 100644 --- a/src/main/java/net/snowflake/client/core/HttpUtil.java +++ b/src/main/java/net/snowflake/client/core/HttpUtil.java @@ -143,7 +143,8 @@ public static void closeExpiredAndIdleConnections() { * * @param key key to HttpClient map containing OCSP and proxy info * @param clientConfig the configuration needed by S3 to set the proxy - * @deprecated use S3HttpUtil.setProxyForS3(HttpClientSettingsKey, ClientConfiguration) instead + * @deprecated Use {@link S3HttpUtil#setProxyForS3(HttpClientSettingsKey, ClientConfiguration)} + * instead */ @Deprecated public static void setProxyForS3(HttpClientSettingsKey key, ClientConfiguration clientConfig) { @@ -157,7 +158,8 @@ public static void setProxyForS3(HttpClientSettingsKey key, ClientConfiguration * @param proxyProperties proxy properties * @param clientConfig the configuration needed by S3 to set the proxy * @throws SnowflakeSQLException - * @deprecated use S3HttpUtil.setSessionlessProxyForS3(Properties, ClientConfiguration) instead + * @deprecated Use {@link S3HttpUtil#setSessionlessProxyForS3(Properties, ClientConfiguration)} + * instead */ @Deprecated public static void setSessionlessProxyForS3( diff --git a/src/main/java/net/snowflake/client/core/SnowflakeMutableProxyRoutePlanner.java b/src/main/java/net/snowflake/client/core/SnowflakeMutableProxyRoutePlanner.java index b0aae8d2f..3b371536d 100644 --- a/src/main/java/net/snowflake/client/core/SnowflakeMutableProxyRoutePlanner.java +++ b/src/main/java/net/snowflake/client/core/SnowflakeMutableProxyRoutePlanner.java @@ -27,8 +27,8 @@ public class SnowflakeMutableProxyRoutePlanner implements HttpRoutePlanner, Seri private HttpProtocol protocol; /** - * @deprecated use SnowflakeMutableProxyRoutePlanner(String host, int proxyPort, HttpProtocol - * protocol, String nonProxyHosts) + * @deprecated Use {@link #SnowflakeMutableProxyRoutePlanner(String, int, HttpProtocol, String)} + * instead */ @Deprecated public SnowflakeMutableProxyRoutePlanner( diff --git a/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializable.java b/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializable.java index 79e5302bf..f5a9aa97c 100644 --- a/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializable.java +++ b/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializable.java @@ -71,7 +71,7 @@ public Builder setSfFullURL(String sfFullURL) { * sc:2.8.2/jdbc:3.12.12 since Sept 2020. It is safe to remove it after Sept 2022. * * @return a ResultSet which represents for the data wrapped in the object - * @deprecated Please use new interface function getResultSet(ResultSetRetrieveConfig) + * @deprecated Use {@link #getResultSet(ResultSetRetrieveConfig)} instead */ @Deprecated ResultSet getResultSet() throws SQLException; @@ -84,7 +84,7 @@ public Builder setSfFullURL(String sfFullURL) { * * @param info The proxy server information if proxy is necessary. * @return a ResultSet which represents for the data wrapped in the object - * @deprecated Please use new interface function getResultSet(ResultSetRetrieveConfig) + * @deprecated Use {@link #getResultSet(ResultSetRetrieveConfig)} instead */ @Deprecated ResultSet getResultSet(Properties info) throws SQLException; diff --git a/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializableV1.java b/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializableV1.java index c0a9addea..a7a1a7e98 100644 --- a/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializableV1.java +++ b/src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializableV1.java @@ -1068,7 +1068,7 @@ public ResultSet getResultSet(ResultSetRetrieveConfig resultSetRetrieveConfig) * sc:2.8.2/jdbc:3.12.12 since Sept 2020. It is safe to remove it after Sept 2022. * * @return a ResultSet which represents for the data wrapped in the object - * @deprecated Please use new interface function getResultSet(ResultSetRetrieveConfig) + * @deprecated Use {@link #getResultSet(ResultSetRetrieveConfig)} instead */ @Deprecated public ResultSet getResultSet() throws SQLException { @@ -1083,7 +1083,7 @@ public ResultSet getResultSet() throws SQLException { * * @param info The proxy sever information if proxy is necessary. * @return a ResultSet which represents for the data wrapped in the object - * @deprecated Please use new interface function getResultSet(ResultSetRetrieveConfig) + * @deprecated Use {@link #getResultSet(ResultSetRetrieveConfig)} instead */ @Deprecated public ResultSet getResultSet(Properties info) throws SQLException {