Skip to content

Use TypeRef for deserialization and client APIs.#301

Merged
artursouza merged 3 commits into
dapr:masterfrom
artursouza:deserializegeneric
Jul 9, 2020
Merged

Use TypeRef for deserialization and client APIs.#301
artursouza merged 3 commits into
dapr:masterfrom
artursouza:deserializegeneric

Conversation

@artursouza

@artursouza artursouza commented Jul 8, 2020

Copy link
Copy Markdown
Contributor

Description

Refactor all of the SDK to use TypeRef in addition of Class. This is a breaking change in two public methods: getStateType() for Actors and deserialize() in the ObjectSerializer interface. Private and protected methods are changed to use TypeRef only.

Inspiration: http://fasterxml.github.io/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/type/TypeReference.html?is-external=true

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #293

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

mukundansundar
mukundansundar previously approved these changes Jul 8, 2020

@mukundansundar mukundansundar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@artursouza artursouza merged commit bd4b24c into dapr:master Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support deserialization of generic types

2 participants