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:
parent
2f1421e3b4
commit
7570cdb0b5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user