package io.netty.handler.codec;

import io.netty.channel.ChannelHandlerAdapter;

/* JADX INFO: loaded from: classes.dex */
final class CodecUtil {
    private CodecUtil() {
    }

    static void ensureNotSharable(ChannelHandlerAdapter channelHandlerAdapter) {
        if (channelHandlerAdapter.isSharable()) {
            throw new IllegalStateException("@Sharable annotation is not allowed");
        }
    }
}
