Fix native method signature

Change-Id: Ia2d566f162f746c6b2b2b874f7278d86abd9e839
This commit is contained in:
Tadashi G. Takaoka 2014-01-15 18:39:36 +09:00
parent 01c1a1a2ba
commit 20a8a4a3d9
2 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,9 @@ import com.android.inputmethod.latin.settings.SpacingAndPunctuations;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Locale; import java.util.Locale;
public class LanguageModelParam { // Note: this class is used as a parameter type of a native method. You should be careful when you
// rename this class or field name. See BinaryDictionary#addMultipleDictionaryEntriesNative().
public final class LanguageModelParam {
private static final String TAG = LanguageModelParam.class.getSimpleName(); private static final String TAG = LanguageModelParam.class.getSimpleName();
private static final boolean DEBUG = false; private static final boolean DEBUG = false;
private static final boolean DEBUG_TOKEN = false; private static final boolean DEBUG_TOKEN = false;

View file

@ -541,7 +541,7 @@ static const JNINativeMethod sMethods[] = {
{ {
const_cast<char *>("addMultipleDictionaryEntriesNative"), const_cast<char *>("addMultipleDictionaryEntriesNative"),
const_cast<char *>( const_cast<char *>(
"(J[Lcom/android/inputmethod/latin/BinaryDictionary$LanguageModelParam;I)I"), "(J[Lcom/android/inputmethod/latin/utils/LanguageModelParam;I)I"),
reinterpret_cast<void *>(latinime_BinaryDictionary_addMultipleDictionaryEntries) reinterpret_cast<void *>(latinime_BinaryDictionary_addMultipleDictionaryEntries)
}, },
{ {