Fix suppress warnings on the packets

This commit is contained in:
Andrew Steinborn
2021-05-13 04:25:06 -04:00
parent 3c41211163
commit 6cd3b00428
3 changed files with 2 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
// TODO: This class is in dire need of a refactor. Suppressing the warning is only done as an
// implicit acknowledgement that this code is very bad.
@SuppressWarnings("WarnAway")
@SuppressWarnings("NullAway")
public class ClientboundJoinGamePacket implements Packet {
public static final PacketReader<ClientboundJoinGamePacket> DECODER = PacketReader.method(ClientboundJoinGamePacket::new);
public static final PacketWriter<ClientboundJoinGamePacket> ENCODER = PacketWriter.deprecatedEncode();

View File

@@ -33,7 +33,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
// TODO: This class is in dire need of a refactor. Suppressing the warning is only done as an
// implicit acknowledgement that this code is very bad.
@SuppressWarnings("WarnAway")
@SuppressWarnings("NullAway")
public class ClientboundRespawnPacket implements Packet {
public static final PacketReader<ClientboundRespawnPacket> DECODER = PacketReader.method(ClientboundRespawnPacket::new);
public static final PacketWriter<ClientboundRespawnPacket> ENCODER = PacketWriter.deprecatedEncode();