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,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.