DefaultChannelHandlerContext doesn't need to extend DefaultAttributeMap (#8960)
Motivation: It appears this was an oversight, maybe was valid at some point in the past. Noticed while reviewing #8958. Modifications: Change DefaultChannelHandlerContext to not extend DefaultAttributeMap. Result: Simpler hierarchy, eliminate unused attributes field from each context instance.
This commit is contained in:
parent
8b23c85978
commit
7d5578b8a6
@ -20,7 +20,6 @@ import static java.util.Objects.requireNonNull;
|
|||||||
import io.netty.buffer.ByteBufAllocator;
|
import io.netty.buffer.ByteBufAllocator;
|
||||||
import io.netty.util.Attribute;
|
import io.netty.util.Attribute;
|
||||||
import io.netty.util.AttributeKey;
|
import io.netty.util.AttributeKey;
|
||||||
import io.netty.util.DefaultAttributeMap;
|
|
||||||
import io.netty.util.Recycler;
|
import io.netty.util.Recycler;
|
||||||
import io.netty.util.ReferenceCountUtil;
|
import io.netty.util.ReferenceCountUtil;
|
||||||
import io.netty.util.ResourceLeakHint;
|
import io.netty.util.ResourceLeakHint;
|
||||||
@ -41,7 +40,7 @@ import java.util.Map;
|
|||||||
import java.util.WeakHashMap;
|
import java.util.WeakHashMap;
|
||||||
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
|
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
|
||||||
|
|
||||||
final class DefaultChannelHandlerContext extends DefaultAttributeMap
|
final class DefaultChannelHandlerContext
|
||||||
implements ChannelHandlerContext, ResourceLeakHint {
|
implements ChannelHandlerContext, ResourceLeakHint {
|
||||||
|
|
||||||
private static final InternalLogger logger = InternalLoggerFactory.getInstance(DefaultChannelHandlerContext.class);
|
private static final InternalLogger logger = InternalLoggerFactory.getInstance(DefaultChannelHandlerContext.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user