removed type cast warnings

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7594 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent a07a1a8b1e
commit b62b79675b

@ -1011,6 +1011,7 @@ public final class yacySeedDB implements AlternativeDomainNames {
return (nextSeed != null);
}
@SuppressWarnings("unchecked")
private yacySeed internalNext() {
if (it == null || !(it.hasNext())) return null;
try {

@ -185,6 +185,7 @@ public class OrderedScoreMap<E> implements ScoreMap<E> {
return score.intValue();
}
@SuppressWarnings("unchecked")
public SortedMap<E, IntScore> tailMap(E obj) {
if (this.map instanceof TreeMap) {
return ((TreeMap<E, IntScore>) this.map).tailMap(obj);
@ -247,6 +248,7 @@ public class OrderedScoreMap<E> implements ScoreMap<E> {
return map.toString();
}
@SuppressWarnings("unchecked")
public Iterator<E> keys(boolean up) {
synchronized (this) {
// re-organize entries

Loading…
Cancel
Save