mirror of https://github.com/apache/lucene.git
- Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@424229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
de09962750
commit
9bc6ba0863
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue