Author: j16sdiz
Date: 2008-12-22 11:05:05 +0000 (Mon, 22 Dec 2008)
New Revision: 24730

Modified:
   trunk/plugins/XMLSpider/IndexWriter.java
Log:
cleaner this way

Modified: trunk/plugins/XMLSpider/IndexWriter.java
===================================================================
--- trunk/plugins/XMLSpider/IndexWriter.java    2008-12-22 11:03:57 UTC (rev 
24729)
+++ trunk/plugins/XMLSpider/IndexWriter.java    2008-12-22 11:05:05 UTC (rev 
24730)
@@ -207,8 +207,7 @@
                Vector<Term> list = new Vector<Term>();
 
                Term term0 = termSet.get(0);
-               String str = term0.md5;
-               String currentPrefix = str.substring(0, prefix);
+               String currentPrefix = term0.md5.substring(0, prefix);
 
                int i = 0;
                for (Term term : termSet) {
@@ -220,8 +219,9 @@
                        } else {
                                //generate the appropriate subindex with the 
current list
                                generateSubIndex(prefix, list);
-                               str = key;
-                               currentPrefix = str.substring(0, prefix);
+                               
+                               // next list
+                               currentPrefix = key.substring(0, prefix);
                                list = new Vector<Term>();
                                list.add(term);
                        }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to