Caching methodId and fieldId is fine: v2

This commit is contained in:
Ankit Gupta 2014-07-09 09:09:08 -07:00
parent b6caaea9d3
commit 0a4d930264
1 changed files with 1 additions and 2 deletions

View File

@ -211,8 +211,7 @@ class WriteBatchJni {
class HistogramDataJni {
public:
static jmethodID getConstructorMethodId(JNIEnv* env, jclass jclazz) {
jmethodID mid = env->GetMethodID(
jclazz, "<init>", "(DDDDD)V");
static jmethodID mid = env->GetMethodID(jclazz, "<init>", "(DDDDD)V");
assert(mid != nullptr);
return mid;
}