mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 13:13:32 +00:00
Edited with Notepad++
This commit is contained in:
parent
bacf6e8818
commit
de1da2bd61
@ -36,7 +36,7 @@ public class ContextProvider
|
|||||||
|
|
||||||
private @Nullable Boolean toBoolean(final String string)
|
private @Nullable Boolean toBoolean(final String string)
|
||||||
{
|
{
|
||||||
// Previoulsy we used Boolean#parseBoolean, but that will always return a value and does not throw
|
// Previously we used Boolean#parseBoolean, but that will always return a value and does not throwl
|
||||||
// an exception. This means that if the string is not "true" or "false", it will return false.
|
// an exception. This means that if the string is not "true" or "false", it will return false.
|
||||||
if (string.equalsIgnoreCase("true")) return true;
|
if (string.equalsIgnoreCase("true")) return true;
|
||||||
if (string.equalsIgnoreCase("false")) return false;
|
if (string.equalsIgnoreCase("false")) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user