Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dubbo-Optimization]: polish DubboBootstrap #5996

Merged

Conversation

tangcent
Copy link
Contributor

@tangcent tangcent commented Apr 11, 2020

What is the purpose of the change

polish DubboBootstrap

Brief changelog

  • use Collections.singletonList instead of Arrays.asList
  • replace some lambda expressions to method reference to improve code readability.

Verifying this change

Run test cases.

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

@tangcent tangcent force-pushed the chore/polish-DubboBootstrap-UrlUtils branch 3 times, most recently from 79ac8be to 75aeffc Compare April 11, 2020 08:52
@codecov-io
Copy link

codecov-io commented Apr 11, 2020

Codecov Report

Merging #5996 (1340dac) into master (279699f) will increase coverage by 0.03%.
The diff coverage is 40.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5996      +/-   ##
============================================
+ Coverage     58.65%   58.68%   +0.03%     
  Complexity      424      424              
============================================
  Files          1043     1043              
  Lines         42473    42471       -2     
  Branches       6212     6212              
============================================
+ Hits          24912    24924      +12     
+ Misses        14773    14766       -7     
+ Partials       2788     2781       -7     
Impacted Files Coverage Δ Complexity Δ
.../apache/dubbo/config/bootstrap/DubboBootstrap.java 41.82% <40.00%> (+0.13%) 0.00 <0.00> (ø)
.../remoting/transport/netty4/NettyClientHandler.java 67.79% <0.00%> (-16.95%) 0.00% <0.00%> (ø%)
.../apache/dubbo/remoting/transport/AbstractPeer.java 58.69% <0.00%> (-4.35%) 0.00% <0.00%> (ø%)
...e/dubbo/remoting/exchange/codec/ExchangeCodec.java 74.56% <0.00%> (-0.88%) 0.00% <0.00%> (ø%)
...n/java/org/apache/dubbo/config/AbstractConfig.java 73.37% <0.00%> (+0.64%) 0.00% <0.00%> (ø%)
.../exchange/support/header/HeaderExchangeServer.java 66.98% <0.00%> (+1.88%) 0.00% <0.00%> (ø%)
...a/org/apache/dubbo/monitor/dubbo/DubboMonitor.java 88.57% <0.00%> (+1.90%) 16.00% <0.00%> (ø%)
...he/dubbo/common/threadpool/ThreadlessExecutor.java 96.15% <0.00%> (+1.92%) 0.00% <0.00%> (ø%)
...dubbo/remoting/exchange/support/DefaultFuture.java 88.03% <0.00%> (+2.56%) 0.00% <0.00%> (ø%)
...e/dubbo/remoting/transport/netty4/NettyServer.java 73.52% <0.00%> (+2.94%) 0.00% <0.00%> (ø%)
... and 5 more

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 279699f...1340dac. Read the comment docs.

@AlbumenJ
Copy link
Member

@tangcent hi, thanks for your contribution

pls resolve confilcts with the latest master branch

@AlbumenJ AlbumenJ added the status/waiting-for-feedback Need reporters to triage label Mar 14, 2021
@tangcent tangcent force-pushed the chore/polish-DubboBootstrap-UrlUtils branch from 75aeffc to abb1336 Compare March 14, 2021 14:27
@tangcent tangcent changed the title [Dubbo-Optimization]: polish DubboBootstrap & UrlUtils [Dubbo-Optimization]: polish DubboBootstrap Mar 14, 2021
- use Collections.singletonList instead of Arrays.asList
- replace some lambda expressions to method reference
@tangcent tangcent force-pushed the chore/polish-DubboBootstrap-UrlUtils branch from abb1336 to 1340dac Compare March 14, 2021 14:52
Copy link
Member

@AlbumenJ AlbumenJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@AlbumenJ AlbumenJ merged commit d009d0c into apache:master Mar 15, 2021
AlbumenJ added a commit to AlbumenJ/dubbo that referenced this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/waiting-for-feedback Need reporters to triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants