Fixed unused-param warning in JNI code