diff --git a/java/org/brotli/wrapper/dec/decoder_jni_onload.cc b/java/org/brotli/wrapper/dec/decoder_jni_onload.cc index b69f954..4ccc802 100644 --- a/java/org/brotli/wrapper/dec/decoder_jni_onload.cc +++ b/java/org/brotli/wrapper/dec/decoder_jni_onload.cc @@ -13,19 +13,22 @@ extern "C" { #endif static const JNINativeMethod kDecoderMethods[] = { - {"nativeCreate", "([J)Ljava/nio/ByteBuffer;", + {const_cast("nativeCreate"), + const_cast("([J)Ljava/nio/ByteBuffer;"), reinterpret_cast( Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate)}, - {"nativePush", "([JI)V", + {const_cast("nativePush"), const_cast("([JI)V"), reinterpret_cast( Java_org_brotli_wrapper_dec_DecoderJNI_nativePush)}, - {"nativePull", "([J)Ljava/nio/ByteBuffer;", + {const_cast("nativePull"), + const_cast("([J)Ljava/nio/ByteBuffer;"), reinterpret_cast( Java_org_brotli_wrapper_dec_DecoderJNI_nativePull)}, - {"nativeDestroy", "([J)V", + {const_cast("nativeDestroy"), const_cast("([J)V"), reinterpret_cast( Java_org_brotli_wrapper_dec_DecoderJNI_nativeDestroy)}, - {"nativeAttachDictionary", "([JLjava/nio/ByteBuffer;)Z", + {const_cast("nativeAttachDictionary"), + const_cast("([JLjava/nio/ByteBuffer;)Z"), reinterpret_cast( Java_org_brotli_wrapper_dec_DecoderJNI_nativeAttachDictionary)}};