/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2017, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA.
 *
 * [Oracle and Java are registered trademarks of Oracle and/or its affiliates. 
 * Other names may be trademarks of their respective owners.]
 *
 */

package org.jfree.chart.util;

/**
 * A list of objects that can grow as required.
 * <p>
 * When cloning, the objects in the list are NOT cloned, only the references. 
 */
public class ObjectList extends AbstractObjectList {
    
    /**
     * Default constructor.
     */
    public ObjectList() {
    }
    
    /**
     * Creates a new list.
     * 
     * @param initialCapacity  the initial capacity.
     */
    public ObjectList(final int initialCapacity) {
        super(initialCapacity);
    }
    
    // NOTE:  the methods below look redundant, but their purpose is to provide public
    // access to the the get(), set() and indexOf() methods defined in the 
    // AbstractObjectList class, for this class only.  For other classes 
    // (e.g. PaintList, ShapeList etc) we don't want the Object versions of these 
    // methods to be visible in the public API.
    
    /**          
     * Returns the object at the specified index, if there is one, or {@code null}.         
     *   
     * @param index  the object index.   
     *   
     * @return The object or {@code null}.          
     */          
    public Object get(final int index) {         
        return super.get(index);         
    }    
         
    /**          
     * Sets an object reference (overwriting any existing object).       
     *   
     * @param index  the object index.   
     * @param object  the object ({@code null} permitted).          
     */          
    public void set(final int index, final Object object) {      
        super.set(index, object);        
    }    
         
    /**          
     * Returns the index of the specified object, or -1 if the object is not in the list.        
     *   
     * @param object  the object.        
     *   
     * @return The index or -1.          
     */          
    public int indexOf(final Object object) {    
        return super.indexOf(object);    
    }    
         
}

@@ -1660,22 +1660,16 @@
 ectList(
-final 
 int init
@@ -1679,24 +1679,24 @@
 Capacity) %7B%0A
+
         supe
@@ -2335,32 +2335,46 @@
    */          %0A
+    @Override%0A
     public Objec
@@ -2379,22 +2379,16 @@
 ect get(
-final 
 int inde
@@ -2686,32 +2686,46 @@
    */          %0A
+    @Override%0A
     public void 
@@ -2728,22 +2728,16 @@
 oid set(
-final 
 int inde
@@ -2742,14 +2742,8 @@
 dex,
- final
  Obj
@@ -3058,24 +3058,38 @@
 /          %0A
+    @Override%0A
     public i
@@ -3103,14 +3103,8 @@
 xOf(
-final 
 Obje

Remove final keywords.