#3767: Remove explicit direct buffer check

This commit is contained in:
Janmm14 2024-12-13 22:46:35 +00:00 committed by GitHub
parent 7340f1a035
commit 15bd33b25b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 6 deletions

View File

@ -37,9 +37,6 @@ public class NativeCipher implements BungeeCipher
@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

View File

@ -48,9 +48,6 @@ public class NativeZlib implements BungeeZlib
@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() ) )