Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

- Cosmetics

Otis Gospodnetic9bc6ba0863ef
diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java
index b348edbff04..07efdfe4553 100755
--- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java
+++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SuggestWord.java
@@ -38,8 +38,8 @@ final class SuggestWord {
*/
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 @@ final class SuggestWord {
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;
}