Author: j16sdiz
Date: 2008-12-11 07:56:15 +0000 (Thu, 11 Dec 2008)
New Revision: 24196

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
rename maxId to maxPageId

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2008-12-11 07:56:05 UTC (rev 
24195)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2008-12-11 07:56:15 UTC (rev 
24196)
@@ -140,7 +140,7 @@
         * Stores the found words along with md5
         */
        public TreeMap<String, String> tMap = new TreeMap<String, String>();
-       protected AtomicLong maxId;
+       protected AtomicLong maxPageId;
        
        private final HashSet<Long> idsWithWords = new HashSet<Long>();
        
@@ -236,7 +236,7 @@
                if (getPageByURI(uri) == null) {
                        Page page = new Page();
                        page.uri = uri.toString();
-                       page.id = maxId.incrementAndGet();
+                       page.id = maxPageId.incrementAndGet();
                        page.comment = comment;
 
                        db.store(page);
@@ -983,9 +983,9 @@
                        query.descend("id").orderDescending();
                        ObjectSet<Page> set = query.execute();
                        if (set.hasNext())
-                               maxId = new AtomicLong(set.next().id);
+                               maxPageId = new AtomicLong(set.next().id);
                        else
-                               maxId = new AtomicLong(0);
+                               maxPageId = new AtomicLong(0);
                }
                
                pr.getNode().executor.execute(new Runnable() {

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

Reply via email to