Add default block in DnsOpCode (#11328)

Motivation:

Every switch block should also have a default case.

Modification:

Add default block in DnsOpCode to ensure we not fall-through by mistake

Result:

Cleanup

Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
This commit is contained in:
skyguard1 2021-05-28 14:50:30 +08:00 committed by GitHub
parent c098b48692
commit b7e23e2c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,8 @@ public class DnsOpCode implements Comparable<DnsOpCode> {
return NOTIFY;
case 0x05:
return UPDATE;
default:
break;
}
return new DnsOpCode(b);