bitte die Java 5 - typischen Warnings einschalten!

(unboxed-Fehler wies auf Programmfehler hin und Typangabe fehlte)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4476 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent c1b9a03304
commit 7f445f34a6

@ -390,16 +390,16 @@ public class blogBoard {
}
public int compare(String obj1, String obj2) {
BlogEntry blogEntry1=readBlogEntry(obj1);
BlogEntry blogEntry2=readBlogEntry(obj2);
BlogEntry blogEntry1 = readBlogEntry(obj1);
BlogEntry blogEntry2 = readBlogEntry(obj2);
if(blogEntry1 == null || blogEntry2 == null)
return 0;
if(this.newestFirst){
if(Long.valueOf(blogEntry2.getTimestamp()) - Long.valueOf(blogEntry1.getTimestamp()) >0)
if (this.newestFirst) {
if (Long.parseLong(blogEntry2.getTimestamp()) - Long.parseLong(blogEntry1.getTimestamp()) > 0)
return 1;
return -1;
}
if(Long.valueOf(blogEntry1.getTimestamp()) - Long.valueOf(blogEntry2.getTimestamp()) >0)
if (Long.parseLong(blogEntry1.getTimestamp()) - Long.parseLong(blogEntry2.getTimestamp()) > 0)
return 1;
return -1;
}

@ -189,9 +189,9 @@ public final class plasmaSearchRankingProcess {
serverProfiling.update("SEARCH", new plasmaProfiling.searchEvent(query.id(true), plasmaSearchEvent.NORMALIZING, index.size(), System.currentTimeMillis() - timer));
// normalize entries and get ranking
timer = System.currentTimeMillis();
timer = System.currentTimeMillis();
Iterator<indexRWIVarEntry> i = decodedEntries.iterator();
indexRWIVarEntry iEntry, l;
indexRWIVarEntry iEntry, l;
long biggestEntry = 0;
//long s0 = System.currentTimeMillis();
Long r;

@ -384,7 +384,7 @@ public final class yacySeedDB {
public HashMap<String, yacySeed> getOldestSeeds(int count, int minage) {
// returns a peerhash/yacySeed relation
try {
final kelondroMScoreCluster seedScore = new kelondroMScoreCluster();
final kelondroMScoreCluster<String> seedScore = new kelondroMScoreCluster<String>();
final Iterator<yacySeed> s = seedsConnected(true, false, null, (float) 0.0);
yacySeed ys;
int age;

Loading…
Cancel
Save