Suppress warnings.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1840 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -63,7 +63,7 @@ public abstract class BaseArrayList<T> extends AbstractList<T>
|
|||||||
return toArray(new Object[_size]);
|
return toArray(new Object[_size]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
@SuppressWarnings("unchecked") // documentation inherited from interface
|
||||||
public <T> T[] toArray (T[] target)
|
public <T> T[] toArray (T[] target)
|
||||||
{
|
{
|
||||||
// create the target array if necessary
|
// create the target array if necessary
|
||||||
@@ -87,7 +87,7 @@ public abstract class BaseArrayList<T> extends AbstractList<T>
|
|||||||
_size = 0;
|
_size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
@SuppressWarnings("unchecked") // documentation inherited from interface
|
||||||
public boolean add (T o)
|
public boolean add (T o)
|
||||||
{
|
{
|
||||||
_elements = (T[])ListUtil.add(_elements, _size, o);
|
_elements = (T[])ListUtil.add(_elements, _size, o);
|
||||||
@@ -121,7 +121,7 @@ public abstract class BaseArrayList<T> extends AbstractList<T>
|
|||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
@SuppressWarnings("unchecked") // documentation inherited from interface
|
||||||
public void add (int index, T element)
|
public void add (int index, T element)
|
||||||
{
|
{
|
||||||
rangeCheck(index, true);
|
rangeCheck(index, true);
|
||||||
@@ -129,7 +129,7 @@ public abstract class BaseArrayList<T> extends AbstractList<T>
|
|||||||
_size++;
|
_size++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
@SuppressWarnings("unchecked") // documentation inherited from interface
|
||||||
public T remove (int index)
|
public T remove (int index)
|
||||||
{
|
{
|
||||||
rangeCheck(index, false);
|
rangeCheck(index, false);
|
||||||
@@ -162,13 +162,13 @@ public abstract class BaseArrayList<T> extends AbstractList<T>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
@SuppressWarnings("unchecked") // documentation inherited
|
||||||
public Object clone ()
|
public Object clone ()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
BaseArrayList<T> dup = (BaseArrayList<T>) super.clone();
|
BaseArrayList<T> dup = (BaseArrayList<T>)super.clone();
|
||||||
if (_elements != null) {
|
if (_elements != null) {
|
||||||
dup._elements = (T[]) _elements.clone();
|
dup._elements = (T[])_elements.clone();
|
||||||
}
|
}
|
||||||
return dup;
|
return dup;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user