diff --git a/codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttVersion.java b/codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttVersion.java index e03c56a1e5..4781ffed6b 100644 --- a/codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttVersion.java +++ b/codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttVersion.java @@ -60,6 +60,8 @@ public enum MqttVersion { case 5: mv = MQTT_5; break; + default: + break; } if (mv == null) { throw new MqttUnacceptableProtocolVersionException(protocolName + "is unknown protocol name");