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

optimized: remove unused code in serializer factory. #3046

Merged

Conversation

l81893521
Copy link
Contributor

Ⅰ. Describe what this PR did

remove unused code in serializer factory.

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

Copy link
Contributor Author

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

or remove the whole SerializerFactory. User EnhancedServiceLoader.load in the encoder and decoder. Can somebody give me some advice?

@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2020

Codecov Report

Merging #3046 into develop will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3046      +/-   ##
=============================================
+ Coverage      50.38%   50.40%   +0.02%     
+ Complexity      3095     3093       -2     
=============================================
  Files            600      599       -1     
  Lines          19541    19531      -10     
  Branches        2412     2412              
=============================================
  Hits            9845     9845              
+ Misses          8707     8697      -10     
  Partials         989      989              
Impacted Files Coverage Δ Complexity Δ
.../io/seata/core/rpc/netty/v1/ProtocolV1Decoder.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../io/seata/core/rpc/netty/v1/ProtocolV1Encoder.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)

@slievrly slievrly added this to the 1.4.0 milestone Aug 20, 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.

I think SerializerFactory can indeed be deleted.

@funky-eyes
Copy link
Contributor

I think SerializerFactory can indeed be deleted.

+1

@l81893521
Copy link
Contributor Author

I think SerializerFactory can indeed be deleted.

Thanks a lot.

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 added the module/serializer serializer module label Aug 28, 2020
Copy link
Contributor

@funky-eyes funky-eyes 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

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

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

LGTM

@funky-eyes funky-eyes merged commit afd9eaa into apache:develop Sep 3, 2020
l81893521 added a commit to l81893521/seata that referenced this pull request Oct 22, 2020
@l81893521 l81893521 deleted the remove_unused_code_in_serializer_factory branch October 22, 2020 09:43
hicf pushed a commit to hicf/seata that referenced this pull request Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/serializer serializer module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants