You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by ot...@apache.org on 2008/05/19 07:45:31 UTC

svn commit: r657728 - /lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java

Author: otis
Date: Sun May 18 22:45:31 2008
New Revision: 657728

URL: http://svn.apache.org/viewvc?rev=657728&view=rev
Log:
- Made PlainTextDictionary(Reader) public from protected

Modified:
    lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java

Modified: lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java?rev=657728&r1=657727&r2=657728&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java (original)
+++ lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java Sun May 18 22:45:31 2008
@@ -29,8 +29,6 @@
  * word1<br/>
  * word2<br/>
  * word3<br/>
- *
- *
  */
 public class PlainTextDictionary implements Dictionary {
 
@@ -47,9 +45,9 @@
   }
 
   /**
-   * Create a dictionary based on a reader. Used by the test case.
+   * Creates a dictionary based on a reader.
    */
-  protected PlainTextDictionary(Reader reader) {
+  public PlainTextDictionary(Reader reader) {
     in = new BufferedReader(reader);
   }
 
@@ -57,7 +55,6 @@
     return new fileIterator();
   }
 
-
   final class fileIterator implements Iterator {
     public Object next() {
       if (!hasNextCalled) {
@@ -77,7 +74,6 @@
       return (line != null) ? true : false;
     }
 
-
     public void remove() {
       throw new UnsupportedOperationException();
     }