Fixes floating point values (e.g. 4.2) not being loaded.
Most likely it gets loaded as a double value.
The old code uses instanceof Integer / instanceof Float checks.
Instead one should use Float.parseFloat(string), that always returns a float and is the cleaner way imo.
Fixes floating point values (e.g. 4.2) not being loaded.
Most likely it gets loaded as a double value.
The old code uses instanceof Integer / instanceof Float checks. Instead one should use Float.parseFloat(string), that always returns a float and is the cleaner way imo.