mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-22 08:54:59 +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)
|
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;
|
return null;
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -141,7 +141,7 @@ public class ContextProvider
|
|||||||
|
|
||||||
private @Nullable Float toFloat(final String string, final Class<?> clazz)
|
private @Nullable Float toFloat(final String string, final Class<?> clazz)
|
||||||
{
|
{
|
||||||
if (clazz != Float.class)
|
if (clazz != Float.class || !string.endsWith("F"))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user