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:
ray.j.greenwell
2010-01-13 17:44:50 +00:00
parent 7480bb2e6c
commit de860c5602
3 changed files with 5 additions and 5 deletions
@@ -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();
+1 -1
View File
@@ -454,7 +454,7 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
}
@Override
public Object clone ()
public HashIntMap<V> clone ()
{
try {
@SuppressWarnings("unchecked")