Caching methodId and fieldId is fine: v2
This commit is contained in:
parent
b6caaea9d3
commit
0a4d930264
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user