Fix typo
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-01 19:27:31 +01:00
parent 8d50990c1a
commit a69f1c07bd
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 2 deletions

View File

@ -4,13 +4,12 @@ import io.gitlab.jfronny.commons.throwable.ThrowingFunction;
import io.gitlab.jfronny.gson.stream.JsonReader;
import io.gitlab.jfronny.gson.stream.JsonToken;
import java.io.IOError;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
public class GList {
public static <T> List<T> read(JsonReader reader, ThrowingFunction<JsonReader, T, IOError> read) throws IOException {
public static <T> List<T> read(JsonReader reader, ThrowingFunction<JsonReader, T, IOException> read) throws IOException {
if (reader.isLenient() && reader.peek() != JsonToken.BEGIN_ARRAY) return List.of(read.apply(reader));
reader.beginArray();
List<T> res = new LinkedList<>();