Now that this library is JDK 1.5, let's return the true type from clone().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2694 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -337,8 +337,8 @@ public class ArrayIntSet extends AbstractIntSet
|
||||
return h;
|
||||
}
|
||||
|
||||
@Override // from AbstractSet<Integer>
|
||||
public Object clone ()
|
||||
@Override
|
||||
public ArrayIntSet clone ()
|
||||
{
|
||||
try {
|
||||
ArrayIntSet nset = (ArrayIntSet)super.clone();
|
||||
|
||||
@@ -164,10 +164,10 @@ public abstract class BaseArrayList<E> extends AbstractList<E>
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object clone ()
|
||||
public BaseArrayList<E> clone ()
|
||||
{
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
BaseArrayList<E> dup = (BaseArrayList<E>)super.clone();
|
||||
if (_elements != null) {
|
||||
dup._elements = _elements.clone();
|
||||
|
||||
@@ -454,7 +454,7 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object clone ()
|
||||
public HashIntMap<V> clone ()
|
||||
{
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user