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: String comparison uses equalsIgnoreCase() #3466

Merged
merged 4 commits into from
Jan 17, 2021
Merged

optimize: String comparison uses equalsIgnoreCase() #3466

merged 4 commits into from
Jan 17, 2021

Conversation

github-ganyu
Copy link
Contributor

@github-ganyu github-ganyu commented Jan 16, 2021

Ⅰ. Describe what this PR did

I optimized some of the code: String comparison uses equalsIgnoreCase()

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

@codecov-io
Copy link

codecov-io commented Jan 16, 2021

Codecov Report

Merging #3466 (7acd4ba) into develop (ded2c83) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #3466   +/-   ##
==========================================
  Coverage      51.54%   51.54%           
  Complexity      3376     3376           
==========================================
  Files            617      617           
  Lines          20474    20474           
  Branches        2567     2567           
==========================================
  Hits           10553    10553           
  Misses          8861     8861           
  Partials        1060     1060           
Impacted Files Coverage Δ Complexity Δ
...ava/io/seata/rm/datasource/exec/MultiExecutor.java 82.60% <ø> (ø) 11.00 <0.00> (ø)
...a/io/seata/rm/datasource/xa/ExecuteTemplateXA.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)

@@ -76,7 +76,7 @@
"Failed to commit xa branch of " + connectionProxyXA.xid + ") since " + ex.getMessage(),
ex);
// XA End & Rollback
if (!(ex instanceof SQLException) || AbstractConnectionProxyXA.SQLSTATE_XA_NOT_END != ((SQLException) ex).getSQLState()) {
if (!(ex instanceof SQLException) || !AbstractConnectionProxyXA.SQLSTATE_XA_NOT_END.equals(((SQLException) ex).getSQLState())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

equalsIgnoreCase

@funky-eyes
Copy link
Contributor

标题以optimize: 开头,并把pr改动登记到changes文件夹中的2个md

@funky-eyes funky-eyes added this to the 1.5.0 milestone Jan 16, 2021
@funky-eyes funky-eyes added first-time contributor first-time contributor module/rm-datasource rm-datasource module type: optimize labels Jan 16, 2021
@github-ganyu github-ganyu changed the title String comparison uses equals() optimize: String comparison uses equalsIgnoreCase() Jan 16, 2021
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

Copy link
Contributor

@l81893521 l81893521 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
first-time contributor first-time contributor module/rm-datasource rm-datasource module type: optimize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants