Hm, ich habe die default Einstellungen für java 5 aus Eclipse. Da ist
das Boxed/unboxed auf ignore.
Was muss ich denn sonst noch einschalten?
gruss
alex
orbiter at BerliOS schrieb:
> Author: orbiter
> Date: 2008-02-10 23:50:09 +0100 (Sun, 10 Feb 2008)
> New Revision: 4476
>
> Modified:
> trunk/source/de/anomic/data/blogBoard.java
> trunk/source/de/anomic/plasma/plasmaSearchRankingProcess.java
> trunk/source/de/anomic/yacy/yacySeedDB.java
> Log:
> bitte die Java 5 - typischen Warnings einschalten!
> (unboxed-Fehler wies auf Programmfehler hin und Typangabe fehlte)
>
> Modified: trunk/source/de/anomic/data/blogBoard.java
> ===================================================================
> --- trunk/source/de/anomic/data/blogBoard.java 2008-02-10 21:31:11 UTC
> (rev 4475)
> +++ trunk/source/de/anomic/data/blogBoard.java 2008-02-10 22:50:09 UTC
> (rev 4476)
> @@ -390,16 +390,16 @@
> }
>
> 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;
> }
>
> Modified: trunk/source/de/anomic/plasma/plasmaSearchRankingProcess.java
> ===================================================================
> --- trunk/source/de/anomic/plasma/plasmaSearchRankingProcess.java
> 2008-02-10 21:31:11 UTC (rev 4475)
> +++ trunk/source/de/anomic/plasma/plasmaSearchRankingProcess.java
> 2008-02-10 22:50:09 UTC (rev 4476)
> @@ -189,9 +189,9 @@
> 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;
>
> Modified: trunk/source/de/anomic/yacy/yacySeedDB.java
> ===================================================================
> --- trunk/source/de/anomic/yacy/yacySeedDB.java 2008-02-10 21:31:11 UTC
> (rev 4475)
> +++ trunk/source/de/anomic/yacy/yacySeedDB.java 2008-02-10 22:50:09 UTC
> (rev 4476)
> @@ -384,7 +384,7 @@
> 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;
>
> _______________________________________________
> YaCy-svn mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/yacy-svn
>
>
_______________________________________________
YaCy-svn mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yacy-svn