- Cosmetics

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@424229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2006-07-21 08:36:29 +00:00
parent de09962750
commit 9bc6ba0863
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}