-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
fix #7315 redundant box for boolean and refactor method filterInvoker #7316
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7316 +/- ##
============================================
- Coverage 59.06% 59.02% -0.04%
+ Complexity 462 460 -2
============================================
Files 1044 1044
Lines 42473 42466 -7
Branches 6228 6224 -4
============================================
- Hits 25085 25064 -21
- Misses 14588 14599 +11
- Partials 2800 2803 +3 Continue to review full report at Codecov.
|
@@ -160,7 +160,7 @@ public URL getUrl() { | |||
* @return | |||
*/ | |||
private <T> List<Invoker<T>> filterUsingStaticTag(List<Invoker<T>> invokers, URL url, Invocation invocation) { | |||
List<Invoker<T>> result = invokers; | |||
List<Invoker<T>> result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove this assignment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see, I reviewed the wrong method.
@@ -160,7 +160,7 @@ public URL getUrl() { | |||
* @return | |||
*/ | |||
private <T> List<Invoker<T>> filterUsingStaticTag(List<Invoker<T>> invokers, URL url, Invocation invocation) { | |||
List<Invoker<T>> result = invokers; | |||
List<Invoker<T>> result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see, I reviewed the wrong method.
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
#7315
What is the purpose of the change
unboxing boolean and refactor method filterInvoker
Brief changelog
1.org.apache.dubbo.rpc.cluster.router.tag.TagRouter#isForceUseTag
Boolean.valueOf -> Boolean.parseBoolean
2.org.apache.dubbo.rpc.cluster.router.tag.TagRouter#filterInvoker
refactor in stream
3.org.apache.dubbo.rpc.cluster.router.tag.TagRouter#filterUsingStaticTag
remove param(result) initial value
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX
. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false
&mvn clean test-compile failsafe:integration-test
to make sure unit-test and integration-test pass.