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,7 +1011,8 @@ public final class yacySeedDB implements AlternativeDomainNames {
return (nextSeed != null);
}
private yacySeed internalNext() {
@SuppressWarnings("unchecked")
private yacySeed internalNext() {
if (it == null || !(it.hasNext())) return null;
try {
Map<String, String> dna0;

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

Loading…
Cancel
Save