GeezerVison is showing github.com — Add equals and hashCode to BaseTableInfo subclasses by mziccard · Pull Request #565 · googleapis/google-cloud-java
Conversation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ajkannan
added a commit
that referenced
this pull request
Jan 21, 2016
Add equals and hashCode to BaseTableInfo subclasses
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
but I think that defining equals and hashCode also for abstract classes is a good practice in general
I would actually say the opposite. if you define it in the base class and override it only in some of the sub-classes then you can have a symmetric issues (B equals C but not C equals B) and can even get weird transitive issues. This is not an issue if you make the base class methods final.
In your case you do override all the sub-classes equals & hashCode methods, so right now we don't have an issue (other than the base-class equals is never used) but more likely to get broken in the future
if someone is not aware of it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
github-actions Bot
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Jun 29, 2022
This PR was generated using Autosynth. 🌈
<details><summary>Log from Synthtool</summary>
```
2021-07-27 23:14:08,406 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-resourcemanager/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-07-27 23:14:09,625 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/1362fdd1-3e4c-47b7-9ab0-1bee2edf08a3/targets
- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 11, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
meltsufin
pushed a commit
that referenced
this pull request
Apr 29, 2026
* samples(testing): add retry rule
* use google-cloud-core's MultipleAttemptsRule
meltsufin
pushed a commit
that referenced
this pull request
May 1, 2026
* samples(testing): add retry rule
* use google-cloud-core's MultipleAttemptsRule
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: bigquery
Issues related to the BigQuery API.
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
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.
|