Add @UnstableApi to TcpDnsResponseEncoder (#11526)

Motivation:

We should mark TcpDnsResponseEncoder as unstable

Modifications:

Add annotation

Result:

Mark the encoder as unstable
This commit is contained in:
Norman Maurer 2021-07-28 19:53:08 +02:00 committed by GitHub
parent 8314e2fb04
commit a2e34ec5e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -20,9 +20,11 @@ import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder; import io.netty.handler.codec.MessageToMessageEncoder;
import io.netty.util.internal.ObjectUtil; import io.netty.util.internal.ObjectUtil;
import io.netty.util.internal.UnstableApi;
import java.util.List; import java.util.List;
@UnstableApi
@ChannelHandler.Sharable @ChannelHandler.Sharable
public final class TcpDnsResponseEncoder extends MessageToMessageEncoder<DnsResponse> { public final class TcpDnsResponseEncoder extends MessageToMessageEncoder<DnsResponse> {
private final DnsRecordEncoder encoder; private final DnsRecordEncoder encoder;

View File

@ -1026,6 +1026,7 @@
<exclude>io.netty.util.internal.shaded</exclude> <exclude>io.netty.util.internal.shaded</exclude>
<!-- Added to fix false-positive --> <!-- Added to fix false-positive -->
<exclude>io.netty.handler.codec.dns.TcpDnsQueryDecoder</exclude> <exclude>io.netty.handler.codec.dns.TcpDnsQueryDecoder</exclude>
<exclude>io.netty.handler.codec.dns.TcpDnsResponseEncoder</exclude>
</excludes> </excludes>
</parameter> </parameter>
<skip>${skipJapicmp}</skip> <skip>${skipJapicmp}</skip>