-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
optimize: simplify to make codes more readable #1722
Conversation
Ⅰ. Describe what this PR did Simplify to make codes more readable. Ⅱ. Does this pull request fix one issue? No. Ⅲ. Why don't you add test cases (unit test/integration test)? Ⅳ. Describe how to verify it Ⅴ. Special notes for reviews
Codecov Report
@@ Coverage Diff @@
## develop #1722 +/- ##
=============================================
- Coverage 47% 46.97% -0.04%
- Complexity 1786 1787 +1
=============================================
Files 365 365
Lines 13300 13298 -2
Branches 1644 1644
=============================================
- Hits 6252 6247 -5
- Misses 6369 6371 +2
- Partials 679 680 +1
Continue to review full report at Codecov.
|
Ⅰ. Describe what this PR did Delete the redundant condition. If the left argument is null, instanceof will return false anyway. Ⅱ. Does this pull request fix one issue? Ⅲ. Why don't you add test cases (unit test/integration test)? Ⅳ. Describe how to verify it Ⅴ. Special notes for reviews
codec/seata-codec-kryo/src/main/java/io/seata/codec/kryo/KryoCodec.java
Outdated
Show resolved
Hide resolved
Change the content of the message.
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.
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
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
Ⅰ. Describe what this PR did
Simplify to make codes more readable.
Ⅱ. Does this pull request fix one issue?
No.
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews