Make AioChannelFinder implementations final
This commit is contained in:
parent
a643bdd331
commit
9a177d99bf
@ -19,7 +19,7 @@ import java.lang.reflect.Field;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class DefaultAioChannelFinder implements AioChannelFinder {
|
||||
final class DefaultAioChannelFinder implements AioChannelFinder {
|
||||
private static volatile Map<Class<?>, Field> fieldCache = new HashMap<Class<?>, Field>();
|
||||
|
||||
@Override
|
||||
|
@ -22,7 +22,7 @@ import java.util.Map;
|
||||
import sun.misc.Unsafe;
|
||||
|
||||
@SuppressWarnings("restriction")
|
||||
class UnsafeAioChannelFinder implements AioChannelFinder {
|
||||
final class UnsafeAioChannelFinder implements AioChannelFinder {
|
||||
private static final Unsafe UNSAFE = getUnsafe();
|
||||
|
||||
private static volatile Map<Class<?>, Long> offsetCache = new HashMap<Class<?>, Long>();
|
||||
|
Loading…
Reference in New Issue
Block a user