Import cleanup
This commit is contained in:
parent
bd42fb23a0
commit
cac35116c3
@ -41,7 +41,7 @@ public class PacketC9PlayerListItem extends DefinedPacket
|
|||||||
{
|
{
|
||||||
writeString( username, buf );
|
writeString( username, buf );
|
||||||
buf.writeBoolean( online );
|
buf.writeBoolean( online );
|
||||||
buf.writeShort(ping );
|
buf.writeShort( ping );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
package net.md_5.bungee;
|
package net.md_5.bungee;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.common.io.ByteArrayDataInput;
|
|
||||||
import com.google.common.io.ByteArrayDataOutput;
|
import com.google.common.io.ByteArrayDataOutput;
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
import io.netty.buffer.ByteBuf;
|
|
||||||
import java.io.DataInput;
|
import java.io.DataInput;
|
||||||
import java.security.PublicKey;
|
import java.security.PublicKey;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
@ -51,7 +51,7 @@ public class CipherBase
|
|||||||
byte[] heapIn = bufToByte( in );
|
byte[] heapIn = bufToByte( in );
|
||||||
|
|
||||||
ByteBuf heapOut = ctx.alloc().heapBuffer( cipher.getOutputSize( readableBytes ) );
|
ByteBuf heapOut = ctx.alloc().heapBuffer( cipher.getOutputSize( readableBytes ) );
|
||||||
heapOut.writerIndex( cipher.update( heapIn, 0, readableBytes, heapOut.array(), heapOut.arrayOffset() ));
|
heapOut.writerIndex( cipher.update( heapIn, 0, readableBytes, heapOut.array(), heapOut.arrayOffset() ) );
|
||||||
|
|
||||||
return heapOut;
|
return heapOut;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user