Fix formatting

This commit is contained in:
Simon Guerout 2021-08-30 10:33:16 -04:00 committed by Éamonn McManus
parent ac14b4c197
commit 66fd2acdcf

View File

@ -251,12 +251,10 @@ public final class JsonTreeReader extends JsonReader {
JsonElement nextJsonElement() throws IOException {
final JsonToken peeked = peek();
if (
peeked == JsonToken.NAME
|| peeked == JsonToken.END_ARRAY
|| peeked == JsonToken.END_OBJECT
|| peeked == JsonToken.END_DOCUMENT
) {
if (peeked == JsonToken.NAME
|| peeked == JsonToken.END_ARRAY
|| peeked == JsonToken.END_OBJECT
|| peeked == JsonToken.END_DOCUMENT) {
throw new IllegalStateException("Unexpected " + peeked + " when reading a JsonElement.");
}
final JsonElement element = (JsonElement) peekStack();