Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1003775: Mark object mapper factory constant property name as internal #1636

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.fasterxml.jackson.core.StreamReadConstraints;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import net.snowflake.client.log.SFLogger;
import net.snowflake.client.log.SFLoggerFactory;

/**
* Factor method used to create ObjectMapper instance. All object mapper in JDBC should be created
Expand All @@ -15,11 +13,10 @@ public class ObjectMapperFactory {
// Snowflake allows up to 16M string size and returns base64 encoded value that makes it up to 23M
public static final int DEFAULT_MAX_JSON_STRING_LEN = 23_000_000;

@SnowflakeJdbcInternalApi
public static final String MAX_JSON_STRING_LENGTH_JVM =
"net.snowflake.jdbc.objectMapper.maxJsonStringLength";

private static final SFLogger logger = SFLoggerFactory.getLogger(ObjectMapperFactory.class);

public static ObjectMapper getObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.configure(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS, false);
Expand Down
Loading