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

refactor: simplify to make seata-common more readable #2038

Merged
merged 3 commits into from
Jan 6, 2020

Conversation

koonchen
Copy link
Contributor

Ⅰ. Describe what this PR did

I studied and read the seata source code in the seta-common module and found some optimization points.

Ⅱ. 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 Dec 15, 2019

Codecov Report

Merging #2038 into develop will decrease coverage by <.01%.
The diff coverage is 62.06%.

Impacted file tree graph

@@             Coverage Diff              @@
##             develop   #2038      +/-   ##
============================================
- Coverage       55.6%   55.6%   -0.01%     
- Complexity      2524    2526       +2     
============================================
  Files            447     447              
  Lines          14922   14920       -2     
  Branches        1765    1764       -1     
============================================
- Hits            8298    8296       -2     
  Misses          5849    5849              
  Partials         775     775
Impacted Files Coverage Δ Complexity Δ
...rc/main/java/io/seata/common/util/StringUtils.java 24.39% <ø> (-1.81%) 16 <0> (ø)
...on/src/main/java/io/seata/common/util/NetUtil.java 54.16% <0%> (ø) 15 <0> (ø) ⬇️
...ain/java/io/seata/common/util/CollectionUtils.java 94.44% <100%> (ø) 32 <0> (ø) ⬇️
...main/java/io/seata/common/util/ReflectionUtil.java 90.19% <100%> (ø) 14 <0> (ø) ⬇️
.../java/io/seata/common/thread/RejectedPolicies.java 50% <50%> (ø) 2 <2> (+1) ⬆️
.../io/seata/common/loader/EnhancedServiceLoader.java 63.55% <84.61%> (ø) 25 <3> (+1) ⬆️

@zjinlei
Copy link
Contributor

zjinlei commented Dec 18, 2019

Thanks!
Coming soon 1.0, priority review after 1.0.

Copy link
Contributor

@zjinlei zjinlei 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

@slievrly slievrly merged commit fd6e43c into apache:develop Jan 6, 2020
dangquocbang pushed a commit to dangquocbang/seata that referenced this pull request Jan 14, 2020
* 'develop' of https://github.com/seata/seata: (125 commits)
  optimize: tcc module code style (apache#2103)
  refactor: change the package path of MySQL recognizer (apache#2125)
  optimize: fix query typo (apache#2176)
  refactor: add sql parser type druid as constant (apache#2156)
  test: enhance test coverage of seata common (apache#2170)
  optimize: gracefully close resources (apache#2139)
  Feature: Saga provide a switch to skip branch report on branch success, in order to optimize performance. (apache#2151)
  chore:use serializer instead of codec (apache#2097)
  optimize: spring module code style (apache#2159)
  optimize: Add Dubbo compatibility (apache#2036)
  optimize : seata-rm-datasource module code style (apache#2062)
  bugfix: Saga report branch status incorrect when service retried succeed (apache#2145)
  optimize:optimize log specifications (apache#2146)
  bugfix: when branchRollback failed, it will trigger retry of multi-tc. (apache#2113)
  refactor: create sql parser spi and a druid type sql parser (apache#1703)
  refactor: simplify to make seata-common more readable (apache#2038)
  feature: support FastThreadLocalContextCore (apache#2106)
  optimize: some typos (apache#2120)
  optimize: increase the oracle table meta cache code coverage (apache#2078)
  optimize: some typos (apache#2115)
  ...

# Conflicts:
#	pom.xml
@slievrly slievrly added this to the 1.1.0 milestone Feb 3, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants