Ignore unavoidable unchecked warnings.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1841 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2006-05-12 01:15:47 +00:00
parent 20a9e352ee
commit e6b7505a69
@@ -124,7 +124,7 @@ public class CountHashMap<K> extends HashMap<K, int[]>
}
}
// documentation inherited
@SuppressWarnings("unchecked") // documentation inherited
public Set<Map.Entry<K, int[]>> entrySet ()
{
// a giant mess of hoop-jumpery so that we can convert each Map.Entry
@@ -191,6 +191,7 @@ public class CountHashMap<K> extends HashMap<K, int[]>
public Iterator<Entry<K>> iterator ()
{
@SuppressWarnings("unchecked")
final Iterator<Map.Entry<K, int[]>> itr = _superset.iterator();
return new Iterator<Entry<K>>() {
public boolean hasNext ()
@@ -198,6 +199,7 @@ public class CountHashMap<K> extends HashMap<K, int[]>
return itr.hasNext();
}
@SuppressWarnings("unchecked")
public Entry<K> next ()
{
return new CountEntryImpl(itr.next());