cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r649330 - /cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
Date Thu, 17 Apr 2008 23:38:13 GMT
Author: anathaniel
Date: Thu Apr 17 16:38:11 2008
New Revision: 649330

URL: http://svn.apache.org/viewvc?rev=649330&view=rev
Log:
Fix buglets

Modified:
    cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java

Modified: cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java?rev=649330&r1=649329&r2=649330&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
(original)
+++ cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
Thu Apr 17 16:38:11 2008
@@ -177,7 +177,7 @@
          *                Description of Exception
          */
         public void deleteAllStaleDocuments() throws IOException {
-            while (uidIter.term() != null && uidIter.term().field() == "uid") {
+            while (uidIter.term() != null && uidIter.term().field().equals("uid"))
{
                 reader.deleteDocuments(uidIter.term());
                 uidIter.next();
             }
@@ -229,7 +229,7 @@
          * @return Description of the Returned Value
          */
         boolean documentIsDeletable(Term term) {
-            return term != null && term.field() == "uid";
+            return term != null && term.field().equals("uid");
         }
 
         /**



Mime
View raw message