java-sdk-contrib icon indicating copy to clipboard operation
java-sdk-contrib copied to clipboard

fix: flagsmith string to double conversion issue(#1557)

Open kushbatra opened this issue 1 month ago • 2 comments

This PR

This PR fixes the issue where FlagsmithProvider.getDoubleDetails fails to parse flag values returned as strings (e.g., "42.42") from Flagsmith. Previously, the provider expected a java.lang.Double and returned an error if the value was a string. With this change, the provider will attempt to parse string values to Double when evaluating double flags, ensuring compatibility with Flagsmith environments that store numeric values as strings. Similar case is handled for Integer as well.

Related Issues

Fixes #1557

Notes

Follow-up Tasks

How to test

kushbatra avatar Nov 03 '25 15:11 kushbatra