From af041f55e7bfa3e1bc502f234538e1d6dd6282bd Mon Sep 17 00:00:00 2001 From: Brotli Date: Tue, 5 May 2026 09:37:03 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 910740603 --- java/org/brotli/wrapper/dec/decoder_jni_onload.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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)}};