diff --git a/src/java/com/samskivert/util/CountHashMap.java b/src/java/com/samskivert/util/CountHashMap.java index ac1809e6..d5f2883f 100644 --- a/src/java/com/samskivert/util/CountHashMap.java +++ b/src/java/com/samskivert/util/CountHashMap.java @@ -124,7 +124,7 @@ public class CountHashMap extends HashMap } } - // documentation inherited + @SuppressWarnings("unchecked") // documentation inherited public Set> entrySet () { // a giant mess of hoop-jumpery so that we can convert each Map.Entry @@ -191,6 +191,7 @@ public class CountHashMap extends HashMap public Iterator> iterator () { + @SuppressWarnings("unchecked") final Iterator> itr = _superset.iterator(); return new Iterator>() { public boolean hasNext () @@ -198,6 +199,7 @@ public class CountHashMap extends HashMap return itr.hasNext(); } + @SuppressWarnings("unchecked") public Entry next () { return new CountEntryImpl(itr.next());