mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Cipher thread locals should be static
This commit is contained in:
parent
02e219262a
commit
c965e60f5e
@ -11,9 +11,9 @@ import java.security.GeneralSecurityException;
|
||||
public class FallbackCipher implements BungeeCipher
|
||||
{
|
||||
|
||||
private Cipher cipher;
|
||||
private ThreadLocal<byte[]> heapInLocal = new EmptyByteThreadLocal();
|
||||
private ThreadLocal<byte[]> heapOutLocal = new EmptyByteThreadLocal();
|
||||
private final Cipher cipher;
|
||||
private static final ThreadLocal<byte[]> heapInLocal = new EmptyByteThreadLocal();
|
||||
private static final ThreadLocal<byte[]> heapOutLocal = new EmptyByteThreadLocal();
|
||||
|
||||
private static class EmptyByteThreadLocal extends ThreadLocal<byte[]>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user