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 GitHub
parent 574e079381
commit 84356bbeb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,8 @@ public enum MqttVersion {
case 5:
mv = MQTT_5;
break;
default:
break;
}
if (mv == null) {
throw new MqttUnacceptableProtocolVersionException(protocolName + "is unknown protocol name");