mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-30 22:53:26 +01:00
Assume SecretKey and PublicKey is immutable too.
This commit is contained in:
parent
d16e0bf1c6
commit
20ab2a71ac
@ -24,9 +24,12 @@ import java.net.Inet6Address;
|
|||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.security.PublicKey;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import javax.crypto.SecretKey;
|
||||||
|
|
||||||
import com.google.common.primitives.Primitives;
|
import com.google.common.primitives.Primitives;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -42,7 +45,8 @@ public class ImmutableDetector implements Cloner {
|
|||||||
StackTraceElement.class, BigDecimal.class,
|
StackTraceElement.class, BigDecimal.class,
|
||||||
BigInteger.class, Locale.class, UUID.class,
|
BigInteger.class, Locale.class, UUID.class,
|
||||||
URL.class, URI.class, Inet4Address.class,
|
URL.class, URI.class, Inet4Address.class,
|
||||||
Inet6Address.class, InetSocketAddress.class
|
Inet6Address.class, InetSocketAddress.class,
|
||||||
|
SecretKey.class, PublicKey.class
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user