-
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: String comparison uses equalsIgnoreCase() #3466
Conversation
Codecov Report
@@ 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
|
@@ -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())) { |
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.
equalsIgnoreCase
标题以optimize: 开头,并把pr改动登记到changes文件夹中的2个md |
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
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