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

optimize: simplify to make codes more readable #1722

Merged
merged 5 commits into from
Oct 8, 2019

Conversation

tjnettech
Copy link
Contributor

Ⅰ. 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

Ⅰ. 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-io
Copy link

codecov-io commented Sep 29, 2019

Codecov Report

Merging #1722 into develop will decrease coverage by 0.03%.
The diff coverage is 33.33%.

Impacted file tree graph

@@              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
Impacted Files Coverage Δ Complexity Δ
...o/src/main/java/io/seata/codec/kryo/KryoCodec.java 63.63% <0%> (ø) 3 <1> (ø) ⬇️
...n/java/io/seata/rm/datasource/DataSourceProxy.java 70% <100%> (-1.88%) 9 <1> (+1)
...server/store/file/FileTransactionStoreManager.java 45.99% <0%> (-1.05%) 19% <0%> (ø)

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 36042d6...c80dc4c. Read the comment docs.

Ⅰ. 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
@tjnettech tjnettech changed the title refactor: simplify to make codes more readable by lambda refactor: simplify to make codes more readable Sep 29, 2019
Change the content of the message.
Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

@xingfudeshi xingfudeshi changed the title refactor: simplify to make codes more readable optimize: simplify to make codes more readable Sep 30, 2019
Copy link
Member

@jsbxyyx jsbxyyx left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

6 participants