forked from opensearch-project/opensearch-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] Codegen equals & hashCode (opensearch-project#1217)
* Generate hashCode and equals (opensearch-project#1201) * Generate hashCode and equals , wip Signed-off-by: miguel-vila <miguelvilag@gmail.com> * add changelog entry Signed-off-by: miguel-vila <miguelvilag@gmail.com> * remove change Signed-off-by: miguel-vila <miguelvilag@gmail.com> * take into account primitives Signed-off-by: miguel-vila <miguelvilag@gmail.com> * refactor and format Signed-off-by: miguel-vila <miguelvilag@gmail.com> * use Object.equals Co-authored-by: Thomas Farr <xtansia@xtansia.com> Signed-off-by: Miguel Vilá <miguelvilag@gmail.com> * use `&&` chain Signed-off-by: miguel-vila <miguelvilag@gmail.com> * adjust last line Signed-off-by: miguel-vila <miguelvilag@gmail.com> * use fqn Signed-off-by: miguel-vila <miguelvilag@gmail.com> * use fqn for Objects.hashCode, take into account parent Signed-off-by: miguel-vila <miguelvilag@gmail.com> * remove unused var definition Signed-off-by: miguel-vila <miguelvilag@gmail.com> * codegen equals/hashCode for request shapes Signed-off-by: miguel-vila <miguelvilag@gmail.com> * add hashCode/equals to TaggedUnion Signed-off-by: miguel-vila <miguelvilag@gmail.com> * use import Signed-off-by: miguel-vila <miguelvilag@gmail.com> * fix equals for request shapes Signed-off-by: miguel-vila <miguelvilag@gmail.com> * codegen latest from main Signed-off-by: miguel-vila <miguelvilag@gmail.com> --------- Signed-off-by: miguel-vila <miguelvilag@gmail.com> Signed-off-by: Miguel Vilá <miguelvilag@gmail.com> Co-authored-by: Thomas Farr <xtansia@xtansia.com> Signed-off-by: Thomas Farr <tsfarr@amazon.com> (cherry picked from commit 18a8460) * Re-run codegen (opensearch-project#1216) * Re-run codegen Signed-off-by: Thomas Farr <tsfarr@amazon.com> * Improve null handling Signed-off-by: Thomas Farr <tsfarr@amazon.com> --------- Signed-off-by: Thomas Farr <tsfarr@amazon.com> (cherry picked from commit 897cc9b)
- Loading branch information
Showing
56 changed files
with
964 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.