Remove unnecessary explicit else statement

This commit is contained in:
Degubi 2019-04-05 16:20:06 +02:00
parent 3ee3c150ed
commit 46d0f58d12

View File

@ -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());
}
/**