From 8f850799a5e0f4718204ef2764506301b07845bc Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Thu, 19 Sep 2024 20:46:29 +0200 Subject: [PATCH] Inherit annotation --- .../geysermc/mcprotocollib/network/tcp/TcpClientSession.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java b/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java index bb84e14d2..e71dd4479 100644 --- a/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java +++ b/protocol/src/main/java/org/geysermc/mcprotocollib/network/tcp/TcpClientSession.java @@ -32,6 +32,7 @@ import org.geysermc.mcprotocollib.network.codec.PacketCodecHelper; import org.geysermc.mcprotocollib.network.helper.TransportHelper; import org.geysermc.mcprotocollib.network.packet.PacketProtocol; +import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -100,7 +101,7 @@ public void connect(boolean wait, boolean transferring) { .localAddress(bindAddress, bindPort) .handler(new ChannelInitializer<>() { @Override - public void initChannel(Channel channel) { + public void initChannel(@NotNull Channel channel) { PacketProtocol protocol = getPacketProtocol(); protocol.newClientSession(TcpClientSession.this, transferring);