Remove unnecessary explicit else statement
This commit is contained in:
parent
3ee3c150ed
commit
46d0f58d12
@ -100,10 +100,9 @@ public final class JsonPrimitive extends JsonElement {
|
||||
public boolean getAsBoolean() {
|
||||
if (isBoolean()) {
|
||||
return ((Boolean) value).booleanValue();
|
||||
} else {
|
||||
// Check to see if the value as a String is "true" in any case.
|
||||
return Boolean.parseBoolean(getAsString());
|
||||
}
|
||||
// Check to see if the value as a String is "true" in any case.
|
||||
return Boolean.parseBoolean(getAsString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user