am 7e79814a: Fix wrong Java method call function

* commit '7e79814aa33890a1d1b4abfdbdc11b5714112d16':
  Fix wrong Java method call function
main
Ken Wakasa 2014-02-18 06:45:46 -08:00 committed by Android Git Automerger
commit bab654e31f
1 changed files with 2 additions and 2 deletions

View File

@ -162,13 +162,13 @@ static void latinime_BinaryDictionary_getHeaderInfo(JNIEnv *env, jclass clazz, j
jintArray keyCodePointArray = env->NewIntArray(it->first.size()); jintArray keyCodePointArray = env->NewIntArray(it->first.size());
env->SetIntArrayRegion( env->SetIntArrayRegion(
keyCodePointArray, 0 /* start */, it->first.size(), &it->first.at(0)); keyCodePointArray, 0 /* start */, it->first.size(), &it->first.at(0));
env->CallVoidMethod(outAttributeKeys, addMethodId, keyCodePointArray); env->CallBooleanMethod(outAttributeKeys, addMethodId, keyCodePointArray);
env->DeleteLocalRef(keyCodePointArray); env->DeleteLocalRef(keyCodePointArray);
// Output value // Output value
jintArray valueCodePointArray = env->NewIntArray(it->second.size()); jintArray valueCodePointArray = env->NewIntArray(it->second.size());
env->SetIntArrayRegion( env->SetIntArrayRegion(
valueCodePointArray, 0 /* start */, it->second.size(), &it->second.at(0)); valueCodePointArray, 0 /* start */, it->second.size(), &it->second.at(0));
env->CallVoidMethod(outAttributeValues, addMethodId, valueCodePointArray); env->CallBooleanMethod(outAttributeValues, addMethodId, valueCodePointArray);
env->DeleteLocalRef(valueCodePointArray); env->DeleteLocalRef(valueCodePointArray);
} }
env->DeleteLocalRef(arrayListClass); env->DeleteLocalRef(arrayListClass);