This fix has been included in the repository.
Thanks....
Michael Harhen wrote:
While debugging a Lucene application using the Sandbox SpellChecker, I
have identified a problem with SpellChecker's suggestSimilar(...) method.
Lines 175-177 are currently:
if (sugword.string==word) {
continue; // don't suggest a word for itself, that
would be silly
}
I believe that "==" should be replaced by equals(), so the code should
read:
if (sugword.string.equals(word)) {
continue; // don't suggest a word for itself, that
would be silly
}
I cannot think of any case where using "==" would give the expected
result. Also, making the change eliminated my bug!
What is the procedure to get this fix incorporated in the Sandbox?
Regards
Michael H
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]