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: CollectionUtils.decodeMap method variables ConcurrentHashMap refact to HashMap #2779

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

xianlaioy
Copy link
Contributor

CollectionUtils.decodeMap 方法内部变量不存在线程安全问题,改成HashMap;

Ⅰ. Describe what this PR did

方法内部变量不存在线程安全问题,改成HashMap;

Ⅱ. Does this pull request fix one issue?

no

Ⅲ. Why don't you add test cases (unit test/integration test)?

no

Ⅳ. Describe how to verify it

run CollectionUtilsTest

Ⅴ. Special notes for reviews

CollectionUtils.decodeMap 方法内部变量不存在线程安全问题,改成HashMap;
@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2020

Codecov Report

Merging #2779 into develop will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #2779   +/-   ##
==========================================
  Coverage      50.47%   50.47%           
+ Complexity      2920     2919    -1     
==========================================
  Files            572      572           
  Lines          18616    18616           
  Branches        2245     2245           
==========================================
  Hits            9396     9396           
  Misses          8288     8288           
  Partials         932      932           
Impacted Files Coverage Δ Complexity Δ
...ain/java/io/seata/common/util/CollectionUtils.java 98.11% <100.00%> (ø) 32.00 <0.00> (ø)

@funky-eyes funky-eyes added the first-time contributor first-time contributor label Jun 8, 2020
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, but please standardize the pr title.

@slievrly slievrly added the module/common common module label Jun 9, 2020
@xianlaioy xianlaioy changed the title CollectionUtils.decodeMap 改成HashMap; CollectionUtils.decodeMap method variables ConcurrentHashMap refact to HashMap; Jun 9, 2020
@l81893521 l81893521 changed the title CollectionUtils.decodeMap method variables ConcurrentHashMap refact to HashMap; optimize: CollectionUtils.decodeMap method variables ConcurrentHashMap refact to HashMap Jun 9, 2020
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

@l81893521 l81893521 merged commit e2472cf into apache:develop Jun 9, 2020
@slievrly slievrly added this to the 1.3.0 milestone Jun 12, 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 module/common common module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants