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

add new feature flag to intern value string #761

Closed
wants to merge 2 commits into from
Closed
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
10 changes: 10 additions & 0 deletions src/main/java/com/fasterxml/jackson/core/JsonFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ public enum Feature
*/
INTERN_FIELD_NAMES(true),

/**
* Similar to INTERN_FIELD_NAMES, this will determine whether the filed values
* to be canonicalized using {@link String#intern} or not:
* if enabled, all field values will be intern()ed (and caller
* can count on this being true for all such values); if disabled,
* no intern()ing is done.
* This setting is disabled by default.
*/
INTERN_FIELD_VALUES(false),

/**
* Feature that determines whether JSON object field names are
* to be canonicalized (details of how canonicalization is done
Expand Down