mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-22 00:45:01 +00:00
Addressed requested changes
Signed-off-by: Paul Reilly <pawereus@gmail.com>
This commit is contained in:
parent
dd353b4429
commit
6ef6eacea0
@ -126,7 +126,7 @@ public class ContextProvider
|
||||
|
||||
private @Nullable Long toLong(final String string, final Class<?> clazz)
|
||||
{
|
||||
if (clazz != Long.class || string.endsWith("L"))
|
||||
if (clazz != Long.class || !string.endsWith("L"))
|
||||
return null;
|
||||
|
||||
try
|
||||
@ -141,7 +141,7 @@ public class ContextProvider
|
||||
|
||||
private @Nullable Float toFloat(final String string, final Class<?> clazz)
|
||||
{
|
||||
if (clazz != Float.class)
|
||||
if (clazz != Float.class || !string.endsWith("F"))
|
||||
return null;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user