Skip to content

feat: add getNumberEvaluation method delegating to getDoubleEvaluation (#501) #1536

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

carla-was-not-available
Copy link
Contributor

@carla-was-not-available carla-was-not-available commented Jul 31, 2025

Please give me some feedback. This is my second open source contribution and I'm not sure if this is the correct approach.

fixes: #501

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@@ -287,9 +287,11 @@ private <T> ProviderEvaluation<?> createProviderEvaluation(
case STRING:
return provider.getStringEvaluation(key, (String) defaultValue, invocationContext);
case INTEGER:
return provider.getIntegerEvaluation(key, (Integer) defaultValue, invocationContext);
return provider.getNumberEvaluation(key, (Integer) defaultValue, invocationContext);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to modify/cast here the resolved value to an Integer before returning, for backwards compatibility?

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.

Why the SDK does not provide a way to fetch Long value?
2 participants