add break & default logic for NettyDecoder.decode#2969
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2969 +/- ##
============================================
- Coverage 39.46% 39.27% -0.19%
+ Complexity 2705 2698 -7
============================================
Files 435 435
Lines 20116 20123 +7
Branches 2453 2453
============================================
- Hits 7938 7904 -34
- Misses 11424 11467 +43
+ Partials 754 752 -2
Continue to review full report at Codecov.
|
|
@superScala Could you resolve the bad code smells ? |
…incubator-dolphinscheduler into fixNettyRemotingServer
|
@superScala I think this PR is OK, we'd better invite owner of this file @qiaozhanwei to review . If he has no suggestions , I will merge this PR. |
|
Kudos, SonarCloud Quality Gate passed!
|
|
@superScala Thanks for your contributions . Since no others have an opposite options ,I merged this PR |
|
hi ,@superScala , unfortunately @qiaozhanwei reverted this PR (#3035) and he gave a useful blog https://www.jianshu.com/p/1f27eaea611d to explain it, you can get infos from the blog. |
What is the purpose of the pull request
We should always add break & default logic to SWITCH , if one method using switch doesn't need to use break & default actually , the logic will be so hard to understand !!!
Brief change log
add break & default logic for NettyDecoder.decode