From 15bd33b25b14b59e41799f6429c05e1231170fbc Mon Sep 17 00:00:00 2001 From: Janmm14 Date: Fri, 13 Dec 2024 22:46:35 +0000 Subject: [PATCH] #3767: Remove explicit direct buffer check --- .../src/main/java/net/md_5/bungee/jni/cipher/NativeCipher.java | 3 --- native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/native/src/main/java/net/md_5/bungee/jni/cipher/NativeCipher.java b/native/src/main/java/net/md_5/bungee/jni/cipher/NativeCipher.java index 614b8b2992..0b7861c000 100644 --- a/native/src/main/java/net/md_5/bungee/jni/cipher/NativeCipher.java +++ b/native/src/main/java/net/md_5/bungee/jni/cipher/NativeCipher.java @@ -37,9 +37,6 @@ public void free() @Override public void cipher(ByteBuf in, ByteBuf out) throws GeneralSecurityException { - // Smoke tests - in.memoryAddress(); - out.memoryAddress(); Preconditions.checkState( ctx != 0, "Invalid pointer to AES key!" ); // Store how many bytes we can cipher diff --git a/native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java b/native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java index bad84bc444..4dc558d53e 100644 --- a/native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java +++ b/native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java @@ -48,9 +48,6 @@ public void free() @Override public void process(ByteBuf in, ByteBuf out) throws DataFormatException { - // Smoke tests - in.memoryAddress(); - out.memoryAddress(); Preconditions.checkState( ctx != 0, "Invalid pointer to compress!" ); while ( !nativeCompress.finished && ( compress || in.isReadable() ) )