-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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: compatible with integration-tx-api module and spring module #6342
optimize: compatible with integration-tx-api module and spring module #6342
Conversation
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6342 +/- ##
============================================
- Coverage 51.94% 51.92% -0.03%
+ Complexity 5186 5183 -3
============================================
Files 921 921
Lines 32166 32166
Branches 3874 3874
============================================
- Hits 16709 16702 -7
- Misses 13821 13829 +8
+ Partials 1636 1635 -1
|
compatible/src/main/java/io/seata/integration/tx/api/interceptor/ActionContextUtil.java
Outdated
Show resolved
Hide resolved
compatible/src/main/java/io/seata/integration/tx/api/interceptor/ActionContextUtil.java
Outdated
Show resolved
Hide resolved
...a/io/seata/integration/tx/api/interceptor/handler/GlobalTransactionalInterceptorHandler.java
Outdated
Show resolved
Hide resolved
...a/io/seata/integration/tx/api/interceptor/handler/GlobalTransactionalInterceptorHandler.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/spring/annotation/GlobalTransactional.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/spring/annotation/GlobalTransactional.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/integration/tx/api/interceptor/ActionInterceptorHandler.java
Outdated
Show resolved
Hide resolved
compatible/src/main/java/io/seata/integration/tx/api/interceptor/ActionContextUtil.java
Outdated
Show resolved
Hide resolved
Ok.I got the point.Thank you! |
Done. @slievrly |
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
|
||
import java.lang.reflect.Method; | ||
|
||
public class GlobalTransactionalInterceptorParser extends org.apache.seata.integration.tx.api.interceptor.parser.GlobalTransactionalInterceptorParser { |
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 didn't I find the spi file for org.apache.seata.integration.tx.api.interceptor.parser?
为什么我没找到org.apache.seata.integration.tx.api.interceptor.parser的spi文件?
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.
meta-inf/service/org.apache.seata.integration.tx.api.interceptor.parser.InterfaceParser
} | ||
|
||
GlobalLock lockAnnoOld = method.getAnnotation(GlobalLock.class); | ||
org.apache.seata.spring.annotation.GlobalLock lockAnnoNew = method.getAnnotation(org.apache.seata.spring.annotation.GlobalLock.class); |
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.
ibid
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
fixes #6334
fixes #6335
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews