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
c098b48692
commit
b7e23e2c39
@ -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