Skip to content

Commit

Permalink
SNOW-1003775: Mark object mapper factory constant property name as in…
Browse files Browse the repository at this point in the history
…ternal
  • Loading branch information
sfc-gh-dprzybysz committed Feb 13, 2024
1 parent 4ce7a83 commit 8427253
Showing 1 changed file with 1 addition and 4 deletions.
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

0 comments on commit 8427253

Please sign in to comment.