Skip to content

[Dubbo] Refactoring to remove feature envy#5559

Merged
chickenlj merged 1 commit intoapache:masterfrom
klebertarcisio:alteracao
Feb 10, 2020
Merged

[Dubbo] Refactoring to remove feature envy#5559
chickenlj merged 1 commit intoapache:masterfrom
klebertarcisio:alteracao

Conversation

@klebertarcisio
Copy link
Copy Markdown
Contributor

I found a refactoring opportunity on Dubbo project.
I believe the checkStubAndLocal method can be improved. This method calls ReflectUtils.forName() method 4 times and ConfigUtils class 4 times.
I am proposing a reduction in the amount of calls.

Regards

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #5559 into master will increase coverage by <.01%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5559      +/-   ##
============================================
+ Coverage     61.22%   61.22%   +<.01%     
- Complexity      422      423       +1     
============================================
  Files           922      922              
  Lines         37504    37503       -1     
  Branches       5432     5430       -2     
============================================
+ Hits          22962    22963       +1     
+ Misses        12056    12055       -1     
+ Partials       2486     2485       -1
Impacted Files Coverage Δ Complexity Δ
...g/apache/dubbo/config/AbstractInterfaceConfig.java 75.93% <85.71%> (+0.31%) 0 <0> (ø) ⬇️
.../remoting/transport/netty4/NettyServerHandler.java 65.9% <0%> (-2.28%) 0% <0%> (ø)
.../remoting/transport/netty4/NettyClientHandler.java 64.4% <0%> (-1.7%) 0% <0%> (ø)
...rg/apache/dubbo/common/timer/HashedWheelTimer.java 63.44% <0%> (+0.34%) 0% <0%> (ø) ⬇️
...he/dubbo/remoting/transport/netty/NettyServer.java 73.68% <0%> (+3.5%) 9% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1aed3ae...272dfce. Read the comment docs.

@chickenlj chickenlj added this to the 2.7.6 milestone Feb 10, 2020
@chickenlj chickenlj self-assigned this Feb 10, 2020
@chickenlj chickenlj merged commit cd509a3 into apache:master Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants