From 9d54a03a4b451d3737f9c2b09d16fa6af4bb4b3b Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 6 Jun 2021 03:51:42 -0400 Subject: [PATCH] Force SpotBugs to shut up here This method is indeed called... --- .../java/com/velocitypowered/proxy/protocol/StateRegistry.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java index 8e787539f..a65946e08 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/StateRegistry.java @@ -68,6 +68,7 @@ import com.velocitypowered.proxy.protocol.packet.title.TitleClearPacket; import com.velocitypowered.proxy.protocol.packet.title.TitleSubtitlePacket; import com.velocitypowered.proxy.protocol.packet.title.TitleTextPacket; import com.velocitypowered.proxy.protocol.packet.title.TitleTimesPacket; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import io.netty.util.collection.IntObjectHashMap; import io.netty.util.collection.IntObjectMap; import it.unimi.dsi.fastutil.objects.Object2IntMap; @@ -490,6 +491,7 @@ public enum StateRegistry { * @param encodeOnly When true packet decoding will be disabled * @return PacketMapping with the provided arguments */ + @SuppressFBWarnings({"UPM_UNCALLED_PRIVATE_METHOD"}) private static PacketMapping map(int id, ProtocolVersion version, boolean encodeOnly) { return map(id, version, null, encodeOnly); }