am 20a8a4a3: Fix native method signature

* commit '20a8a4a3d9844dc2437fd1ca6325559bb2c3a644':
  Fix native method signature
main
Tadashi G. Takaoka 2014-01-15 02:09:42 -08:00 committed by Android Git Automerger
commit bafcf362b0
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)
}, },
{ {