equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
4335 * @serial include |
4335 * @serial include |
4336 */ |
4336 */ |
4337 private static class ArrayList<E> extends AbstractList<E> |
4337 private static class ArrayList<E> extends AbstractList<E> |
4338 implements RandomAccess, java.io.Serializable |
4338 implements RandomAccess, java.io.Serializable |
4339 { |
4339 { |
|
4340 @java.io.Serial |
4340 private static final long serialVersionUID = -2764017481108945198L; |
4341 private static final long serialVersionUID = -2764017481108945198L; |
|
4342 @SuppressWarnings("serial") // Conditionally serializable |
4341 private final E[] a; |
4343 private final E[] a; |
4342 |
4344 |
4343 ArrayList(E[] array) { |
4345 ArrayList(E[] array) { |
4344 a = Objects.requireNonNull(array); |
4346 a = Objects.requireNonNull(array); |
4345 } |
4347 } |