Skip to content

Commit 15bd33b

Browse files
authored
#3767: Remove explicit direct buffer check
1 parent 7340f1a commit 15bd33b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

native/src/main/java/net/md_5/bungee/jni/cipher/NativeCipher.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ public void free()
3737
@Override
3838
public void cipher(ByteBuf in, ByteBuf out) throws GeneralSecurityException
3939
{
40-
// Smoke tests
41-
in.memoryAddress();
42-
out.memoryAddress();
4340
Preconditions.checkState( ctx != 0, "Invalid pointer to AES key!" );
4441

4542
// Store how many bytes we can cipher

native/src/main/java/net/md_5/bungee/jni/zlib/NativeZlib.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ public void free()
4848
@Override
4949
public void process(ByteBuf in, ByteBuf out) throws DataFormatException
5050
{
51-
// Smoke tests
52-
in.memoryAddress();
53-
out.memoryAddress();
5451
Preconditions.checkState( ctx != 0, "Invalid pointer to compress!" );
5552

5653
while ( !nativeCompress.finished && ( compress || in.isReadable() ) )

0 commit comments

Comments
 (0)