Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Oct 16, 2023
1 parent 0aa9f7e commit fe6820b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/java_binding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![feature(result_option_inspect)]

use std::ffi::c_void;

use jni::sys::{jint, JNI_VERSION_1_2};
use jni::JavaVM;
use risingwave_jni_core::register_native_method_for_jvm;

#[no_mangle]
#[allow(non_snake_case)]
pub extern "system" fn JNI_OnLoad(jvm: JavaVM, _reserved: *mut c_void) -> jint {
let _ = register_native_method_for_jvm(&jvm)
.inspect_err(|_e| eprintln!("unable to register native method"));
JNI_VERSION_1_2
}
pub use risingwave_jni_core::*;

0 comments on commit fe6820b

Please sign in to comment.