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 2006/07/21 10:36:31 UTC

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

Author: otis
Date: Fri Jul 21 01:36:29 2006
New Revision: 424229

URL: http://svn.apache.org/viewvc?rev=424229&view=rev
Log:
- Cosmetics

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

Modified: lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java?rev=424229&r1=424228&r2=424229&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java (original)
+++ lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java Fri Jul 21 01:36:29 2006
@@ -38,8 +38,8 @@
    */
   public String string;
 
-  public final int compareTo (SuggestWord a) {
-    //first criteria: the edit distance
+  public final int compareTo(SuggestWord a) {
+    // first criteria: the edit distance
     if (score > a.score) {
       return 1;
     }
@@ -47,7 +47,7 @@
       return -1;
     }
 
-    //second criteria (if first criteria is equal): the popularity
+    // second criteria (if first criteria is equal): the popularity
     if (freq > a.freq) {
       return 1;
     }