Add default handling for switch statement (#10408)
Motivation: When a switch statement is used we should always define a `default:` so we don't introduce bugs due fall-through. Modification: Add missing `default:`s Result: Less error-prone code
This commit is contained in:
parent
7caced28c6
commit
cd0203b5c7
@ -1146,6 +1146,8 @@ public final class PlatformDependent {
|
|||||||
case 'g': case 'G':
|
case 'g': case 'G':
|
||||||
maxDirectMemory *= 1024 * 1024 * 1024;
|
maxDirectMemory *= 1024 * 1024 * 1024;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -738,6 +738,8 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
|||||||
invokeChannelUnregistered(task, k, null);
|
invokeChannelUnregistered(task, k, null);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user