Add default block in MqttVersion (#11226)

Motivation:

Fix switch case fall through, add default block in MqttVersion

Modification:

Fix switch case fall through, add default block in MqttVersion

Result:

Code cleanup


Signed-off-by: xingrufei <xingrufei@sogou-inc.com>

Co-authored-by: xingrufei <xingrufei@sogou-inc.com>
This commit is contained in:
skyguard1 2021-05-06 14:09:27 +08:00 committed by Norman Maurer
parent 525d69694a
commit 743d44b7a2

View File

@ -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");