File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
impl/src/main/java/org/eclipse/parsson Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2012, 2023 Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2012, 2024 Oracle and/or its affiliates. All rights reserved.
33 *
44 * This program and the accompanying materials are made available under the
55 * terms of the Eclipse Public License v. 2.0, which is available at
2626import java .util .Collections ;
2727import java .util .List ;
2828import java .util .Optional ;
29+ import java .util .RandomAccess ;
2930
3031/**
3132 * JsonArrayBuilder implementation
@@ -355,7 +356,7 @@ private void validateValue(Object value) {
355356 }
356357 }
357358
358- private static final class JsonArrayImpl extends AbstractList <JsonValue > implements JsonArray {
359+ private static final class JsonArrayImpl extends AbstractList <JsonValue > implements JsonArray , RandomAccess {
359360 private final List <JsonValue > valueList ; // Unmodifiable
360361 private final JsonContext jsonContext ;
361362 private int hashCode ;
You can’t perform that action at this time.
0 commit comments