Skip to content

Package: FinalArrayList

FinalArrayList

nameinstructionbranchcomplexitylinemethod
FinalArrayList()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
FinalArrayList(Collection)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
FinalArrayList(int)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package org.jvnet.staxex.util;
12:
13: import java.util.ArrayList;
14: import java.util.Collection;
15:
16: /**
17: * {@link ArrayList} with a final marker to help JIT.
18: * @author Kohsuke Kawaguchi
19: * @param <T> element type
20: */
21: public final class FinalArrayList<T> extends ArrayList<T> {
22:
23: private static final long serialVersionUID = 1848322681043875368L;
24:
25: public FinalArrayList(int initialCapacity) {
26: super(initialCapacity);
27: }
28:
29: public FinalArrayList() {
30: }
31:
32: public FinalArrayList(Collection<? extends T> collection) {
33: super(collection);
34: }
35: }