Skip to content
Snippets Groups Projects
Commit dd8d2a89 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Remove a useless member"

parents 7ead070d f1b464da
No related branches found
No related tags found
No related merge requests found
...@@ -1412,8 +1412,6 @@ public final class BinaryDictInputOutput { ...@@ -1412,8 +1412,6 @@ public final class BinaryDictInputOutput {
private static WeightedString getWordAtAddressWithParentAddress( private static WeightedString getWordAtAddressWithParentAddress(
final FusionDictionaryBufferInterface buffer, final int headerSize, final int address, final FusionDictionaryBufferInterface buffer, final int headerSize, final int address,
final FormatOptions options) { final FormatOptions options) {
final StringBuilder builder = new StringBuilder();
int currentAddress = address; int currentAddress = address;
int index = FormatSpec.MAX_WORD_LENGTH - 1; int index = FormatSpec.MAX_WORD_LENGTH - 1;
int frequency = Integer.MIN_VALUE; int frequency = Integer.MIN_VALUE;
......
...@@ -294,6 +294,8 @@ public final class AndroidSpellCheckerService extends SpellCheckerService ...@@ -294,6 +294,8 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
final String[] gatheredSuggestions; final String[] gatheredSuggestions;
final boolean hasRecommendedSuggestions; final boolean hasRecommendedSuggestions;
if (0 == mLength) { if (0 == mLength) {
// TODO: the comment below describes what is intended, but in the practice
// mBestSuggestion is only ever set to null so it doesn't work. Fix this.
// Either we found no suggestions, or we found some BUT the max length was 0. // Either we found no suggestions, or we found some BUT the max length was 0.
// If we found some mBestSuggestion will not be null. If it is null, then // If we found some mBestSuggestion will not be null. If it is null, then
// we found none, regardless of the max length. // we found none, regardless of the max length.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment