jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/FinalArrayList.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, 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 |
30 |
30 |
31 /** |
31 /** |
32 * {@link ArrayList} with a final marker to help JIT. |
32 * {@link ArrayList} with a final marker to help JIT. |
33 * @author Kohsuke Kawaguchi |
33 * @author Kohsuke Kawaguchi |
34 */ |
34 */ |
35 public final class FinalArrayList extends ArrayList { |
35 public final class FinalArrayList<E> extends ArrayList<E> { |
36 public FinalArrayList(int initialCapacity) { |
36 public FinalArrayList(int initialCapacity) { |
37 super(initialCapacity); |
37 super(initialCapacity); |
38 } |
38 } |
39 |
39 |
40 public FinalArrayList() { |
40 public FinalArrayList() { |
41 } |
41 } |
42 |
42 |
43 public FinalArrayList(Collection collection) { |
43 public FinalArrayList(Collection<? extends E> collection) { |
44 super(collection); |
44 super(collection); |
45 } |
45 } |
46 |
46 |
47 } |
47 } |