[FLINK-9803] Drop canEqual() from TypeSerializer#7732
Closed
aljoscha wants to merge 1 commit intoapache:masterfrom
Closed
[FLINK-9803] Drop canEqual() from TypeSerializer#7732aljoscha wants to merge 1 commit intoapache:masterfrom
aljoscha wants to merge 1 commit intoapache:masterfrom
Conversation
Collaborator
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsBot commandsThe @flinkbot bot supports the following commands:
|
6090ff8 to
a3b0f7c
Compare
Contributor
Author
|
@flinkbot attention @tzulitai @igalshilman |
Contributor
|
All and all, 👍 for removing dead code. There might be a slight potential issue with Can you please add to Guess we'll have to wait for Travis, but other than that LGTM. |
49e984d to
efc169f
Compare
This change removes TypeSerializer.canEqual() because it is not useful on that class hierachy. Serializers can only equals() on an exact match, not with different serializers up and down the hierarchy. This adds a serialVersionUID to InstantSerializer, to ensure that it doesn't change from removing the canEqual() method. Plus we also remove canEqual() from PojoField, where it is not needed.
b62ece3 to
dc17d83
Compare
Contributor
|
LGTM 👍 |
Contributor
Author
|
Merged. Thanks for the reviews! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
This change removes
TypeSerializer.canEqual()because it is not useful on that class hierachy. Serializers can onlyequals()on an exact match, not with different serializers up and down the hierarchy.Verifying this change
This is covered by existing tests. We simply remove the method in the interface and all subclasses.