cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search SimpleLuceneCocoonSearcherImpl.java
Date Wed, 04 Feb 2004 13:00:32 GMT
cziegeler    2004/02/04 05:00:32

  Modified:    src/blocks/lucene/java/org/apache/cocoon/components/search
                        SimpleLuceneCocoonSearcherImpl.java
  Log:
  Use new methods instead of deprecated version
  
  Revision  Changes    Path
  1.5       +3 -3      cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java
  
  Index: SimpleLuceneCocoonSearcherImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SimpleLuceneCocoonSearcherImpl.java	6 Jan 2004 13:40:25 -0000	1.4
  +++ SimpleLuceneCocoonSearcherImpl.java	4 Feb 2004 13:00:32 -0000	1.5
  @@ -486,7 +486,7 @@
            */
           public boolean indexReaderIsValid(Directory directory) throws IOException {
               return indexReader != null &&
  -            IndexReader.lastModified(directory) == lastModified;
  +            IndexReader.getCurrentVersion(directory) == lastModified;
           }
   
   
  @@ -509,7 +509,7 @@
           private void createIndexReader(Directory directory) throws IOException {
               close();
               indexReader = IndexReader.open(directory);
  -            lastModified = IndexReader.lastModified(directory);
  +            lastModified = IndexReader.getCurrentVersion(directory);
           }
       }
   }
  
  
  

Mime
View raw message