Make AioChannelFinder implementations final

This commit is contained in:
Trustin Lee 2012-08-28 17:02:03 +09:00
parent a643bdd331
commit 9a177d99bf
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>();