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; return h;
} }
@Override // from AbstractSet<Integer> @Override
public Object clone () public ArrayIntSet clone ()
{ {
try { try {
ArrayIntSet nset = (ArrayIntSet)super.clone(); ArrayIntSet nset = (ArrayIntSet)super.clone();
@@ -164,10 +164,10 @@ public abstract class BaseArrayList<E> extends AbstractList<E>
} }
@Override @Override
@SuppressWarnings("unchecked") public BaseArrayList<E> clone ()
public Object clone ()
{ {
try { try {
@SuppressWarnings("unchecked")
BaseArrayList<E> dup = (BaseArrayList<E>)super.clone(); BaseArrayList<E> dup = (BaseArrayList<E>)super.clone();
if (_elements != null) { if (_elements != null) {
dup._elements = _elements.clone(); dup._elements = _elements.clone();
+1 -1
View File
@@ -454,7 +454,7 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
} }
@Override @Override
public Object clone () public HashIntMap<V> clone ()
{ {
try { try {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")