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 Norman Maurer
parent 2f1421e3b4
commit 7570cdb0b5

View File

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