jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r606181 - /jackrabbit/sandbox/wordnet-synonyms/src/main/java/org/apache/jackrabbit/core/query/wordnet/WordNetSynonyms.java
Date Fri, 21 Dec 2007 12:52:40 GMT
Author: mreutegg
Date: Fri Dec 21 04:52:40 2007
New Revision: 606181

URL: http://svn.apache.org/viewvc?rev=606181&view=rev
Log:
JCR-1278: Add configuration path to SynonymProvider

Modified:
    jackrabbit/sandbox/wordnet-synonyms/src/main/java/org/apache/jackrabbit/core/query/wordnet/WordNetSynonyms.java

Modified: jackrabbit/sandbox/wordnet-synonyms/src/main/java/org/apache/jackrabbit/core/query/wordnet/WordNetSynonyms.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/wordnet-synonyms/src/main/java/org/apache/jackrabbit/core/query/wordnet/WordNetSynonyms.java?rev=606181&r1=606180&r2=606181&view=diff
==============================================================================
--- jackrabbit/sandbox/wordnet-synonyms/src/main/java/org/apache/jackrabbit/core/query/wordnet/WordNetSynonyms.java
(original)
+++ jackrabbit/sandbox/wordnet-synonyms/src/main/java/org/apache/jackrabbit/core/query/wordnet/WordNetSynonyms.java
Fri Dec 21 04:52:40 2007
@@ -17,6 +17,7 @@
 package org.apache.jackrabbit.core.query.wordnet;
 
 import org.apache.jackrabbit.core.query.lucene.SynonymProvider;
+import org.apache.jackrabbit.core.fs.FileSystemResource;
 import org.apache.lucene.index.memory.SynonymMap;
 
 import java.io.IOException;
@@ -49,11 +50,18 @@
     /**
      * {@inheritDoc}
      */
+    public void initialize(FileSystemResource configuration)
+            throws IOException {
+    }
+
+    /**
+     * {@inheritDoc}
+     */
     public String[] getSynonyms(String string) {
         if (SYNONYM_MAP != null) {
             return SYNONYM_MAP.getSynonyms(string.toLowerCase());
         } else {
-            return null;
+            return new String[0];
         }
     }
 }



Mime
View raw message