Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handle numeric conversions for non-string raw values.#726

Merged
rgallardo-netflix merged 1 commit into2.xfrom
numeric-raw-values-conversions
May 24, 2024
Merged

Handle numeric conversions for non-string raw values.#726
rgallardo-netflix merged 1 commit into2.xfrom
numeric-raw-values-conversions

Conversation

@rgallardo-netflix
Copy link
Contributor

For implementations of AbstractConfig that return non-string values from getRawProperty(), be smarter about doing numeric conversions. Without this, users are forced to guess if the property source will interpret a given number as an integer or a long and code to that, instead of to the types that make sense for their own use case.

Fixes: #653

For implementations of AbstractConfig that return non-string values from getRawProperty(), be smarter about doing numeric conversions. Without this, users are forced to guess if the property source will interpret a given number as an integer or a long and code to that, instead of to the types that make sense for their own use case.

Fixes: #653
@rgallardo-netflix rgallardo-netflix merged commit ffed4cb into 2.x May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config implementations that pre-parse values cause conflicts in AbstractConfig#getValueWithDefault

1 participant