[freenet-cvs] r11293 - trunk/plugins/Librarian

toad at freenetproject.org toad at freenetproject.org
Thu Dec 7 21:42:03 UTC 2006


Author: toad
Date: 2006-12-07 21:42:03 +0000 (Thu, 07 Dec 2006)
New Revision: 11293

Modified:
   trunk/plugins/Librarian/Librarian.java
Log:
Another HashSet

Modified: trunk/plugins/Librarian/Librarian.java
===================================================================
--- trunk/plugins/Librarian/Librarian.java	2006-12-07 21:38:02 UTC (rev 11292)
+++ trunk/plugins/Librarian/Librarian.java	2006-12-07 21:42:03 UTC (rev 11293)
@@ -198,7 +198,7 @@
 			
 			HashSet hs = new HashSet();
 			synchronized (hs) { // add all for the first word
-				HashSet keyuris = (HashSet)index.get(searchWords[0].toLowerCase().trim());
+				Vector keyuris = (Vector)index.get(searchWords[0].toLowerCase().trim());
 				if (keyuris != null) {
 					Iterator it = keyuris.iterator();
 					while (it.hasNext())
@@ -206,7 +206,7 @@
 				}
 			}
 			synchronized (hs) {
-				for (int i = 0 ; i < searchWords.length ; i++) {
+				for (int i = 1 ; i < searchWords.length ; i++) {
 					Vector keyuris = (Vector)index.get(searchWords[i].toLowerCase().trim());
 					
 					Iterator it = hs.iterator();




More information about the cvs mailing list