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